Beispiel #1
0
 private void OnTrackerThread(ProcessTracker tracker)
 {
     if (tracker != null)
     {
         if (tracker.Prey != null && tracker.Prey.IsTrack)
         {
             ProcessPrey processPrey = (ProcessPrey)tracker.Prey;
             if (processPrey != null)
             {
                 while (tracker.isStop == false)
                 {
                     if (tracker.OnTracking != null)
                     {
                         processPrey.Process.Refresh();
                         tracker.OnTracking(tracker.Prey, tracker, new EventArgs());
                     }
                 }
             }
         }
     }
 }
Beispiel #2
0
 public void SetProcess(ProcessPrey prey)
 {
     _prey = prey;
     Init();
 }
Beispiel #3
0
 public ProcessTracker(ProcessPrey prey) : this()
 {
     _prey = prey;
     Init();
 }