/// <summary> /// Show the help window /// </summary> /// <param name="parameter"></param> protected override void ExecuteAction(object parameter) { if (_helpView == null) { _helpView = new HelpView(); } if (_helpView.IsVisible) { _helpView.Focus(); } else { _helpView.Show(); } _helpView.Closing += HelpViewOnClosing; }
private void OpenHelp(object obj) { if (_helpView == null) { _logger.Info("show help view"); _helpView = Container.Resolve <HelpView>(); _helpView.Closed += delegate { _helpView = null; }; _helpView.Show(); } else { _logger.Warn("help view already open"); _logger.Info("push view in foreground"); _helpView.Focus(); } }