private void button2_Click(object sender, EventArgs e) { if (tabControl1.SelectedTab == sheetTab) { AddSheetForm sheetForm = new AddSheetForm(null); sheetForm.Show(); } else if (tabControl1.SelectedTab == edgeTab) { AddEdgeForm edgeForm = new AddEdgeForm(null); edgeForm.Show(); } else if (tabControl1.SelectedTab == lamTab) { AddLamForm lamForm = new AddLamForm(null); lamForm.Show(); } }
private void edgetapeToolStripMenuItem_Click(object sender, EventArgs e) { AddEdgeForm edgeForm = new AddEdgeForm(null); edgeForm.Show(); }