Пример #1
0
        public static PromptDialogBox ShowPrompt()
        {
            var m = new PromptDialogBox();

            m.ShowDialog();
            return(m);
        }
Пример #2
0
        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)); });
        }