Esempio n. 1
0
        public static IRunningProcess[] Show(IEnumerable <IProcess> toHookOnStart, IEnumerable <IRunningProcess> unhooked, IEnumerable <IRunningProcess> hookedInactive, IEnumerable <IRunningProcess> hookedActive)
        {
            var aSelectionForm = new ProcessSelectionForm(toHookOnStart, unhooked, hookedInactive, hookedActive);

            aSelectionForm.ShowDialog();
            return(aSelectionForm.SelectedProcesses.ToArray());
        }
Esempio n. 2
0
        public IEnumerable <IRunningProcess> SelectProcessesToApplyHookingRules(IEnumerable <IProcess> toHookOnStart,
                                                                                IEnumerable <IRunningProcess> unhooked,
                                                                                IEnumerable <IRunningProcess>
                                                                                hookedInactive,
                                                                                IEnumerable <IRunningProcess> hookedActive)
        {
            var selectedProcesses = new IRunningProcess[0];

            var job = new UpdateUIJob(this,
                                      () =>
                                      selectedProcesses =
                                          ProcessSelectionForm.Show(toHookOnStart, unhooked, hookedInactive, hookedActive));

            job.Perform();

            return(selectedProcesses);
        }
Esempio n. 3
0
 public static IRunningProcess[] Show(IEnumerable<IProcess> toHookOnStart, IEnumerable<IRunningProcess> unhooked, IEnumerable<IRunningProcess> hookedInactive, IEnumerable<IRunningProcess> hookedActive)
 {
     var aSelectionForm = new ProcessSelectionForm(toHookOnStart, unhooked, hookedInactive, hookedActive);
     aSelectionForm.ShowDialog();
     return aSelectionForm.SelectedProcesses.ToArray();
 }