private void button1_Click(object sender, EventArgs e) { if (radioButton1.Checked == true) { owner.DisplayGrid(0, int.Parse(textBox1.Text), int.Parse(textBox2.Text)); } else { owner.DisplayGrid(1, int.Parse(textBox1.Text), int.Parse(textBox2.Text)); } }
private void button1_Click(object sender, EventArgs e) { owner.DisplayGrid(owner.methodC, owner.xPaceC * int.Parse(textBox1.Text), owner.yPaceC * int.Parse(textBox2.Text)); this.Close(); }