public static PromptDialogBox ShowPrompt() { var m = new PromptDialogBox(); m.ShowDialog(); return(m); }
private void SyncWithFolderName(object sender, RoutedEventArgs e) { var res = PromptDialogBox.ShowPrompt(); if (res.ChooseCondition != PromptDialogBox.Result.Ok) { return; } var additionalFolderName = res.ValueHolder.Text; CopyFilesToFolder((TransmittMedia item) => { return(System.IO.Path.Combine(SyncPathTextBlock.Content.ToString(), item.FileInfo.LastWriteTime.ToString("yyyy.MM ") + additionalFolderName)); }); }