예제 #1
0
        private void ChooseFiles(object sender, RoutedEventArgs e)
        {
            var dialog = new OpenFileDialog {
                InitialDirectory = Properties.Settings.Default.InspectionPath, Multiselect = true
            };

            if (dialog.ShowDialog() == true)
            {
                FilesToInspectStorer.Store(dialog.FileNames);
                EvaluateRerunButtons();
                ((ViewModel)DataContext).FilesToInspect = string.Join(Environment.NewLine, FilesToInspectEvaluator.Evaluate());
            }
        }
예제 #2
0
 private void ReRunJavaScript(object sender, RoutedEventArgs e)
 {
     DoAction(() => JavaScriptMetricsPresenter.View(FilesToInspectEvaluator.Evaluate()));
 }