Exemple #1
0
        private void BrowseAutoSaveFolderExecute(object obj)
        {
            var interaction = new FolderBrowserInteraction();

            interaction.Description         = Translation.SelectAutoSaveFolder;
            interaction.ShowNewFolderButton = true;

            _interactionInvoker.Invoke(interaction);

            if (!interaction.Success)
            {
                return;
            }

            TargetDirectoryViewModel.Text = interaction.SelectedPath;
            TargetDirectoryViewModel.RaiseTextChanged();
        }
        private void BrowseSaveFolderExecute(object o)
        {
            var interaction = new FolderBrowserInteraction();

            interaction.Description         = Translation.SelectSaveDialogFolder;
            interaction.ShowNewFolderButton = true;

            _interactionInvoker.Invoke(interaction);

            if (!interaction.Success)
            {
                return;
            }

            FolderViewModel.Text = interaction.SelectedPath;
            FolderViewModel.RaiseTextChanged();
        }
        private Option <string> ExecuteFolderBrowse(string description, string initalText)
        {
            var interaction = new FolderBrowserInteraction
            {
                Description         = description,
                ShowNewFolderButton = true,
                SelectedPath        = initalText
            };

            _interactionInvoker.Invoke(interaction);

            if (!interaction.Success || string.IsNullOrWhiteSpace(interaction.SelectedPath))
            {
                return(Option.None <string>());
            }

            return(interaction.SelectedPath.Some());
        }
 public void Invoke(FolderBrowserInteraction interaction)
 {
     throw new NotImplementedException();
 }