Пример #1
0
 /// <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();
     }
 }
Пример #2
0
 private void InstanceTracker_Closed(object sender, System.EventArgs e)
 {
     tracker.Dispose();
     tracker = null;
 }
 private void InstanceTracker_Closed(object sender, System.EventArgs e)
 {
     tracker.Dispose();
     tracker = null;
 }
Пример #4
0
 public WeakEvent()
 {
     InstanceTracker.Add(this);
 }
 /// <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();
     }
 }