protected virtual void CloseDialog(string parameter) { ButtonResult result = ButtonResult.None; if (parameter?.ToLower() == "true") { result = ButtonResult.OK; DocumentsSettings.SaveSettings(); } else { if (parameter?.ToLower() == "false") { result = ButtonResult.Cancel; } } RaiseRequestClose(new Prism.Services.Dialogs.DialogResult(result)); }
public DocsSettingsDialogViewModel() { DocumentsSettings.LoadSettings(); BrowseFilesCommand = new DelegateCommand <string>(BrowseFiles); BrowseFoldersCommand = new DelegateCommand <string>(BrowseFolders); }