Example #1
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     App.Current.DeviceManager.UnloadDevice();
     _videoWindow.Device  = null;
     _keypadWindow.Device = null;
     _ioWindow.Device     = null;
     _mixerWindow.Mixer   = null;
     _videoWindow.Close();
     _keypadWindow.Close();
     _ioWindow.Close();
     _mixerWindow.Close();
 }
Example #2
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     App.Current.DeviceManager.UnloadDevice();
     _videoWindow.Device  = null;
     _keypadWindow.Device = null;
     _ioWindow.Device     = null;
     _mixerWindow.Mixer   = null;
     _cheatsWindow.GamesharkController = null;
     _optionsDialog.CanClose           = true;
     _videoWindow.Close();
     _keypadWindow.Close();
     _ioWindow.Close();
     _mixerWindow.Close();
     _cheatsWindow.Close();
     _optionsDialog.Close();
 }