private void timer1_Tick(object sender, EventArgs e) { if (downloadTaskCompleted) { timer1.Stop(); RepositoryUpdateCompleted(); } }