public void OnButtonPress()
 {
     if (_settingsWindow == null)
     {
         _settingsWindow = new SettingsWindow(Settings);
         _settingsWindow.PluginWindow = _mainWindow;
         _settingsWindow.Closed      += (sender, args) =>
         {
             _settingsWindow = null;
         };
         _settingsWindow.Show();
     }
     else
     {
         _settingsWindow.Activate();
     }
 }
Esempio n. 2
0
 public void OnButtonPress()
 {
     if (SettingsWindow == null)
     {
         SettingsWindow = new SettingsWindow(Settings)
         {
             PluginWindow = MainWindow
         };
         SettingsWindow.Closed += (sender, args) =>
         {
             SettingsWindow = null;
         };
         SettingsWindow.Show();
     }
     else
     {
         SettingsWindow.Activate();
     }
 }
 public void OnButtonPress()
 {
     if (_settingsWindow == null)
     {
         _settingsWindow = new SettingsWindow(Settings);
         _settingsWindow.PluginWindow = _mainWindow;
         _settingsWindow.Closed += (sender, args) =>
         {
             _settingsWindow = null;
         };
         _settingsWindow.Show();
     }
     else
     {
         _settingsWindow.Activate();
     }
 }