private void checkBoxMultiple_CheckedChanged(object sender, EventArgs e) { if (!checkBoxMultiple.Checked) return; if (form2 == null) { form2 = new Multiple_Parts(this); form2.Show(); Console.WriteLine("Multiple Parts is null"); } else form2.Show(); Console.WriteLine("Opening multiple parts form"); }
public Borrow() { InitializeComponent(); Grade.Value = keepGrade; form2 = new Multiple_Parts(this); }