Beispiel #1
0
 private void CalMenu_Click(object sender, EventArgs e)
 {
     switch ( sender.ToString() )
     {
         case "&BSA":
             Calculators calcBSA = new Calculators(0);
             calcBSA.Show();
             break;
         case "&Cockcroft-Gault":
             Calculators calcCCR = new Calculators(1);
             calcCCR.Show();
             break;
         case "C&alvert":
             Calculators calcCalvert = new Calculators(2);
             calcCalvert.Show();
             break;
     }
 }
Beispiel #2
0
 // Main button to open Calculator form (Selected index = 0)
 private void btnCalcCall_Click(object sender, EventArgs e)
 {
     Calculators calc = new Calculators(0);
     calc.Show();
 }