Exemple #1
0
 private void DoAction(Action action)
 {
     InteractionPermissionToggler.Toggle(false, (ViewModel)DataContext);
     Task.Run(() =>
     {
         action();
         Application.Current.Dispatcher.BeginInvoke(new Action(() => { InteractionPermissionToggler.Toggle(true, (ViewModel)DataContext); TxtOutput.ScrollToEnd(); }));
     });
 }
Exemple #2
0
        private void InspectGroupJavaScript(object sender, RoutedEventArgs e)
        {
            InteractionPermissionToggler.Toggle(false, (ViewModel)DataContext);
            var groupCount    = ((ViewModel)DataContext).GroupCount;
            var specificGroup = SpecificGroupEvaluator.Evaluate((ViewModel)DataContext);

            Task.Run(() =>
            {
                var path = Properties.Settings.Default.InspectionPath;
                if (PathExistenceEvaluator.Evaluate(path))
                {
                    GroupedJavaScriptEvaluator.Evaluate(groupCount, Directory.GetDirectories(path), specificGroup);
                }
                Application.Current.Dispatcher.BeginInvoke(new Action(() => { InteractionPermissionToggler.Toggle(true, (ViewModel)DataContext); TxtOutput.ScrollToEnd(); }));
            });
        }