Esempio n. 1
0
 private void OpenOptions(int i)
 {
     if (i >= 0)
     {
         optionsWindow = new ControllerOptions(controllerManager.getController(i));
         optionsWindow.ShowDialog();
         optionsWindow.Activate();
         optionsWindow.FormClosed += (sender, e) => { optionsWindow = null; };
     }
 }
Esempio n. 2
0
 private void openOptions(int i)
 {
     if (optionsWindow == null)
     {
         optionsWindow = new ControllerOptions(controllerManager.getController(i));
         optionsWindow.Show();
         optionsWindow.Activate();
         optionsWindow.FormClosed += (sender, e) => { optionsWindow = null; };
     }
     else
     {
         System.Media.SystemSounds.Asterisk.Play();
         optionsWindow.Focus();
     }
 }
Esempio n. 3
0
 private void OpenOptions()
 {
     if (optionsWindow == null)
     {
         optionsWindow = new ControllerOptions(controllerManager.getController());
         optionsWindow.Show();
         optionsWindow.Activate();
         optionsWindow.FormClosed += (sender, e) => { optionsWindow = null; };
     }
     else
     {
         System.Media.SystemSounds.Asterisk.Play();
         optionsWindow.Focus();
     }
 }