private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { radLabel3.Text = "Number of Solutions :\n"; this.moves.Clear(); //this.radListView1.Items.Add(solution[0]); foreach (Node node in sol) { string s = node.ToString(); string ss = s; //ss=ss.Replace('1', '*'); this.moves.Text += "_____________________\n" + ss; solution.Add(node); System.Windows.Forms.Application.DoEvents(); } radLabel3.Text += solution.Count > 0 ? (solution.Count - 1).ToString() : "There is no solution !"; radBindingNavigator1CountItem.Text = "of {" + solution.Count + "}"; Waiting_br.StopWaiting(); Waiting_br.Visible = false; }
private void radButton1_Click(object sender, EventArgs e) { Waiting_br.Visible = true; Waiting_br.StartWaiting(); backgroundWorker1.RunWorkerAsync(); }