public void Present(ViewModel viewModel)
        {
            var dialog = new FolderBrowserDialog
            {
                SelectedPath = Properties.Settings.Default.SolutionPath,
                Description  = "Select the route directory of the solution you are refactoring"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.SolutionPath = dialog.SelectedPath;
                Properties.Settings.Default.Save();
                viewModel.SolutionDirectory   = Properties.Settings.Default.SolutionPath;
                viewModel.HasCssRefactorPaths = HasRefactorPathsEvaluator.Evaluate();
                EnableDiagnosticsEvaluator.Evaluate();
            }
        }
        public void Present(ViewModel viewModel)
        {
            var dialog = new FolderBrowserDialog
            {
                SelectedPath = Properties.Settings.Default.GeneratedFilesPath,
                Description  = "Select the folder you would to store  generated CSS files"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.GeneratedFilesPath = dialog.SelectedPath;
                Properties.Settings.Default.Save();
                viewModel.GeneratedCssDirectory = Properties.Settings.Default.GeneratedFilesPath;
                viewModel.HasCssRefactorPaths   = HasRefactorPathsEvaluator.Evaluate();
                EnableDiagnosticsEvaluator.Evaluate();
            }
        }
Exemplo n.º 3
0
        public void Present(ViewModel viewModel)
        {
            var dialog = new FolderBrowserDialog
            {
                SelectedPath = Properties.Settings.Default.RefactorPath,
                Description  = "Select the target CSS folder to refactor"
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.RefactorPath = dialog.SelectedPath;
                Properties.Settings.Default.Save();
                viewModel.RefactorCssDirectory = Properties.Settings.Default.RefactorPath;
                viewModel.HasCssRefactorPaths  = HasRefactorPathsEvaluator.Evaluate();
                viewModel.IsIdle = EnableDiagnosticsEvaluator.Evaluate();
            }
        }