private void button2_Click(object sender, EventArgs e) { k2 = new KurtkaLab6("Типова", "Чорний", 36, "Нова"); toolStripStatusLabel2.Text = "Друга куртка: створена;"; groupBox2.Enabled = true; button6.Enabled = true; button10.Enabled = true; button2.Enabled = false; if ((Object)k1 != null) { toolStripStatusLabel3.Visible = true; button7.Enabled = true; check(); } }
private void button1_Click(object sender, EventArgs e) { k1 = new KurtkaLab6("Типова", "Чорний", 36, "Нова"); toolStripStatusLabel1.Text = "Перша куртка: створена;"; groupBox1.Enabled = true; button5.Enabled = true; button9.Enabled = true; button1.Enabled = false; if ((Object)k2 != null) { toolStripStatusLabel3.Visible = true; button7.Enabled = true; check(); } }