//KPP public void button2_Click(object sender, EventArgs e) { for (int i = 1; i <= Convert.ToInt16(numericUpDown1.Value); i++) { var txtBox = this.Controls.Find("textBox" + (i + 4), true); odbiorcy[i] = Convert.ToInt16(txtBox[0].Text); } odbiorcy[0] = Convert.ToInt16(textBox4.Text); heurystyki kpp = new heurystyki(); kpp.KPP(Convert.ToInt16(textBox4.Text), odbiorcy, odbiorcy.Length, graf, ile_node, Convert.ToInt16(textBox2.Text)); }
private void button3_Click(object sender, EventArgs e) { for (int i = 1; i <= Convert.ToInt16(numericUpDown1.Value); i++) { var txtBox = this.Controls.Find("textBox" + (i + 4), true); odbiorcy[i] = Convert.ToInt16(txtBox[0].Text); } odbiorcy[0] = nadawca; heurystyki cspt = new heurystyki(); cspt.CSPT(Convert.ToInt16(textBox4.Text), odbiorcy, odbiorcy.Length, graf, ile_node, Convert.ToInt16(textBox3.Text)); }