private void светящиесяКраяToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new MedianFilter(); backgroundWorker1.RunWorkerAsync(filter); while (backgroundWorker1.IsBusy) { Thread.Sleep(200); Application.DoEvents(); } Filters filter2 = new BorderSelectionFilter(); backgroundWorker1.RunWorkerAsync(filter2); while (backgroundWorker1.IsBusy) { Thread.Sleep(400); Application.DoEvents(); } Filters filter3 = new MaxFilter(); backgroundWorker1.RunWorkerAsync(filter3); }
private void выделеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new BorderSelectionFilter(); backgroundWorker1.RunWorkerAsync(filter); }