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()); } } } } } }
public void SetProcess(ProcessPrey prey) { _prey = prey; Init(); }
public ProcessTracker(ProcessPrey prey) : this() { _prey = prey; Init(); }