private void label9_Click(object sender, EventArgs e) { //If there is no Form 19 instance if (f19 == null) { //Instantiate Form 19 f19 = new Form19(); } //Show the new Form 19 instance f19.Show(); //Set Form 19's Form 6 variable as this instance f19.f6 = this; //Set Form 19's Form 7 variable as null f19.f7 = null; //Hide this form this.Hide(); }
private void заказыToolStripMenuItem2_Click(object sender, EventArgs e) { Form f10 = new Form19(); f10.Show(); }