private void button1_Click(object sender, EventArgs e) { Task3 t3 = this.Owner as Task3; if (t3 != null) { //Line or bar if (radioButton1.Checked) { t3.lineToolStripMenuItem.Enabled = true; t3.barToolStripMenuItem.Enabled = false; } else { t3.lineToolStripMenuItem.Enabled = false; t3.barToolStripMenuItem.Enabled = true; } } t3.inf = listBox1.SelectedIndex; this.Close(); }
private void button3_Click(object sender, EventArgs e) { Task3 task3 = new Task3(); task3.ShowDialog(); }