private void WaitToUnzip_Tick(object sender, EventArgs e) { WaitToUnzip.Stop(); DownloadCompletedtxt.Visible = false; CHCKUPD.Text = "Installing... "; Installing(); }
/* * * Metoda deklarująca warunki, które muszą zostać spełnione aby aktualizacja zostałą rozpoczęta. */ public void doIT() { if (File.Exists(path + "\\SmartSell.exe")) { if (completed == false) { VersionChecking(); } WaitToUnzip.Start(); } else if (!File.Exists(path + "\\SmartSell.exe")) { if (completed == false) { BGworkersWithData.Add(BackgroungWorker); BackgroungWorker.RunWorkerAsync(); CheckAllThreadsHaveFinishedWorking(); } WaitToUnzip.Start(); } }