public void OnApplicationDirectorySelected(FolderSelectionMessage m) { if (m.Response != null) { ApplicationRootDirectoryPath.Value = m.Response; } }
public void SetSourceDirectory(FolderSelectionMessage parameter) { if (parameter.Response != null) { SourceDirectory = parameter.Response + "\\"; } }
private async Task LoadFileFromDialog(FolderSelectionMessage fsMessage) { if (fsMessage.Response == null) { return; } await LoadFileFromNewPath(fsMessage.Response); }
public void FolderSelected([NotNull] FolderSelectionMessage message) { if (message == null) { throw new ArgumentNullException(nameof(message)); } OutputMessage = $"{DateTime.Now}: FolderSelected: {message.Response ?? "未選択"}"; }
public void AddBMSFolder(FolderSelectionMessage msg) { if (msg.Response != null) { var path = msg.Response.Replace('\\', '/'); if (!ConfigViewModel.BMSDirectories.Any(vm => vm.Entry == path)) { ConfigViewModel.AddBMSDirectory(path); ConfigViewModel.ScanBMSAtLaunch = true; } } }
public void FolderSelected([NotNull] FolderSelectionMessage message) { if (message == null) { throw new ArgumentNullException(nameof(message)); } string selectedPaths = message.Response == null ? "未選択" : String.Join(";", message.SelectedPaths); OutputMessage = $"{DateTime.Now}: FolderSelected: {selectedPaths}"; }
public void OpenBackgroundPathDialog() { var message = new FolderSelectionMessage("Window.OpenBackgroundImagesDialog.Open") { Title = Resources.Settings_Background_SelectionDialog, SelectedPath = Settings.General.DesktopBackgroundFolderPath, DialogPreference = FolderSelectionDialogPreference.CommonItemDialog, }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { Settings.General.DesktopBackgroundFolderPath.Value = message.Response; } }
public void OpenDestinationSelectionDialog() { var message = new FolderSelectionMessage("FolderDialog.Screenshot.Open") { Title = Resources.Settings_Screenshot_FolderSelectionDialog_Title, DialogPreference = Helper.IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = this.CanOpenDestination ? ScreenshotSettings.Destination : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { ScreenshotSettings.Destination.Value = message.Response; } }
public void OpenDestinationSelectionDialog() { var message = new FolderSelectionMessage("FolderDialog.AudibleNotifications.Open") { Title = Resources.Settings_Screenshot_FolderSelectionDialog_Title, DialogPreference = IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = this.CanOpenDestination ? Settings.Location : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { this.Location = message.Response; } }
/// <summary> /// 出力先選択ダイアログを開きます。 /// </summary> public void OpenOutputFolderSelectionDialog() { var message = new FolderSelectionMessage("FolderDialog.Open") { Title = Resources.Settings_OutputFolderSelectionDialog_Title, DialogPreference = Helper.IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = Directory.Exists(this.OutputFolder) ? this.OutputFolder : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { this.OutputFolder = message.Response; } }
public void OpenScreenshotFolderSelectionDialog() { var message = new FolderSelectionMessage("OpenFolderDialog/Screenshot") { Title = Resources.Settings_Screenshot_FolderSelectionDialog_Title, DialogPreference = Helper.IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = this.CanOpenScreenshotFolder ? this.ScreenshotFolder : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { this.ScreenshotFolder = message.Response; } }
public void OpenLoggerFolderSelectionDialog() { try { var message = new FolderSelectionMessage("OpenFolderDialog/Screenshot") { Title = "", DialogPreference = Helper.IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = this.CanOpenLoggerFolder ? this.LoggerFolder : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { this.LoggerFolder = message.Response; } } catch { } }
public void OpenScreenshotFolderSelectionDialog() { try { var message = new FolderSelectionMessage("OpenFolderDialog/Screenshot") { Title = Resources.Settings_Screenshot_FolderSelectionDialog_Title, DialogPreference = Helper.IsWindows8OrGreater ? FolderSelectionDialogPreference.CommonItemDialog : FolderSelectionDialogPreference.FolderBrowser, SelectedPath = this.CanOpenScreenshotFolder ? this.ScreenshotFolder : "" }; this.Messenger.Raise(message); if (Directory.Exists(message.Response)) { this.ScreenshotFolder = message.Response; } } catch { } }
public void CustomTweetSaveFolderOpen(FolderSelectionMessage msg) { if (msg.Response == null) return; SettingsViewModel.CustomTweetSaveFolderPath = msg.Response; }
public void FolderSelected(FolderSelectionMessage message) { OutputMessage.Value = $"{DateTime.Now}: FolderSelected: {message.Response}"; }