protected override ExecutionResult DoExecute(string arg) { using (DeactivateHotKey.During()) { WindowManager.ShowDialog(GetViewModel <StatisticsViewModel>()); } Log.Trace("Closed settings"); return(ExecutionResult.SuccessHide); }
protected override ExecutionResult DoExecute(string arg) { if (KeywordLoader.Contains(arg)) { return(ExecutionResult.SuccessHide); } using (DeactivateHotKey.During()) { var vm = GetViewModel <SetupViewModel>(); WindowManager.ShowWindow(vm); vm.ListAliasViewModel.CreateKeyword(arg); vm.SelectedTab = 0; } Log.Trace("Closed settings"); return(ExecutionResult.SuccessHide); }