Example #1
0
 private void CloseTooltip()
 {
     fadingTimer.Stop();
     window.MouseLeave -= OnToolTipMouseLeave;
     window.Hide();
     window.Close();
     window = null;
     CreateTooltipWindows();
 }
Example #2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     if (window != null)
     {
         window.Hide();
         window.Close();
         window = null;
     }
     base.Dispose(disposing);
 }