private void Task3() { if (!FinishedTask3) { FinishedTask3 = true; progressBar3.Value = 0; BusinessLayer BL = new BusinessLayer(); BL.PrepareTask3((message) => UpdateProgressBar3(message)); } //FinishedTask3 = true; }
private void Task1() { if (!FinishedTask1) { FinishedTask1 = true; progressBar1.Value = 0; BusinessLayer BL = new BusinessLayer(); BL.PrepareTask1((message) => UpdateProgressBar1(message)); } //Thread.Sleep(200); }