Exemple #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();
     }
 }
Exemple #2
0
 private void sheetToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddSheetForm sheetForm = new AddSheetForm(null);
     sheetForm.Show();
 }