Exemplo n.º 1
0
 public FormMenu()
 {
     InitializeComponent();
     calculatorForm     = new Calculator();
     mechanicEnergyForm = new MechanicEnergy();
     solarSystemForm    = new SolarSystem();
     helperForm         = new HelperForm();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Event-handler за бутона за форма механична енергия
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button2_Click(object sender, EventArgs e)
 {
     if (mechanicEnergyForm == null)
     {
         mechanicEnergyForm = new MechanicEnergy();
     }
     mechanicEnergyForm.Show(this);
     this.Hide();
 }