private void letsGO_2() { textBox2.Clear(); TestLogicData td = new TestLogicData(); CursoR mult = tl.FindMult(td.table); textBox2.Text += "\n Таблица 20х20 "; textBox2.Text += "\n"; ListNumTxtObjects(tl.Matrix); textBox2.Text += "\n [" + mult.i.ToString() + "," + mult.j.ToString() + "]= " + mult.Value.ToString(); foreach (Member nb in mult.Neighbors) { textBox2.Text += "\n [" + nb.i.ToString() + "," + nb.j.ToString() + "]= " + nb.Value.ToString(); } textBox2.Text += "\n Наибольшее произведение : " + mult.GetMult().ToString(); }
private void FindMaximum() { StopFlag = false; CursoR mult = tl.FindMult(td.table); label1.Content = ""; textBox2.Clear(); textBox2.Text += "\n Таблица 20х20 "; textBox2.Text += "\n"; textBox2.Text += "\n [" + mult.i.ToString() + "," + mult.j.ToString() + "]= " + mult.Value.ToString(); foreach (Member nb in mult.Neighbors) { textBox2.Text += "\n [" + nb.i.ToString() + "," + nb.j.ToString() + "]= " + nb.Value.ToString() + "\t\t"; } textBox2.Text += "\n Наибольшее произведение : " + mult.GetMult().ToString(); DrawMatrix(canvas1, this.tl.Matrix); DrawCursoR(canvas1, mult, Brushes.Yellow, Brushes.LightGray); // maximum cursor foreach (Member m in mult.Neighbors) { DrawCursoR(canvas1, m, Brushes.Red, Brushes.LightGray); } }