/// <summary> /// Display the tracking debug window to the user. If an instance of the windows /// is already shown, it will pop it back to front. /// </summary> public static void Display() { if (tracker != null) { tracker.Activate(); } else { tracker = new InstanceTracker(); tracker.Show(); } }
private void InstanceTracker_Closed(object sender, System.EventArgs e) { tracker.Dispose(); tracker = null; }
public WeakEvent() { InstanceTracker.Add(this); }