示例#1
0
 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();
     }
 }
示例#2
0
 private void edgetapeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddEdgeForm edgeForm = new AddEdgeForm(null);
     edgeForm.Show();
 }