コード例 #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());
                     }
                 }
             }
         }
     }
 }
コード例 #2
0
 public void SetProcess(ProcessPrey prey)
 {
     _prey = prey;
     Init();
 }
コード例 #3
0
 public ProcessTracker(ProcessPrey prey) : this()
 {
     _prey = prey;
     Init();
 }