Exemplo n.º 1
0
 // Open "Helicopters"
 private static void OpenHelicopters()
 {
     using (frmHelicopters helicopters = new frmHelicopters())
     {
         helicopters.ShowDialog();
     }
 }
Exemplo n.º 2
0
 // Open "Helicopters" and refresh registration combobox
 private void Helicopters()
 {
     using (frmHelicopters helicopters = new frmHelicopters())
     {
         if (helicopters.ShowDialog() == DialogResult.Cancel)
         {
             FillCbxRegistration();
             cbxRegistration.SelectedItem = helicopters.NewHeli;
         }
     }
 }