private void DoOpenOptions() { if (_OptionsWindow == null) { _OptionsWindow = new OptionsWindow(_ControlService, _PluginManager, _IconManager, _WebServer, Shutdown); _OptionsWindow.Closed += (sender, e) => _OptionsWindow = null; _OptionsWindow.Show(); } _OptionsWindow.Activate(); }
public void Execute(object parameter) { if (optionsWindow == null) { optionsWindow = new OptionsWindow(); optionsWindow.Closed += (o, e) => optionsWindow = null; } if (parameter is OptionsWindow.Tab) { optionsWindow.SelectTab((OptionsWindow.Tab)parameter); } optionsWindow.Show(); optionsWindow.Activate(); }