Exemplo 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());
        }
Exemplo 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);
        }
Exemplo 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();
 }