private bool ToolTipCreated() { //Logger.LogTrace("ToolTipCreated"); try { RemoveAll(); _tip = new OPMToolTip(); _tip.AutomaticDelay = this.AutomaticDelay; _tip.AutoPopDelay = this.AutoPopDelay; _tip.InitialDelay = this.InitialDelay; _tip.ReshowDelay = this.ReshowDelay; _tip.Disposed += new EventHandler(_tip_Disposed); _tip.Popup += new PopupEventHandler(_tip_Popup); //Logger.LogTrace("ToolTipCreated -> return True"); return(true); } catch (Exception ex) { //Logger.LogTrace("ToolTipCreated esxception: {0}", ex.ToString()); //Logger.LogTrace("ToolTipCreated -> return False"); return(false); } }
void _tip_Disposed(object sender, EventArgs e) { if (sender == _tip) { //Logger.LogTrace("_tip_Disposed"); _tip = null; _pos = Point.Empty; } }
public void RemoveAll() { //Logger.LogTrace_WithStackDump("RemoveAll"); if (_tip != null) { //Logger.LogTrace("RemoveAll => Hide"); _tip.Hide(_ctl); _tip.Dispose(); _tip = null; _pos = Point.Empty; } }
public void RemoveAll() { //Logger.LogTrace_WithStackDump("RemoveAll"); if (_tip != null) { //Logger.LogTrace("RemoveAll => Hide"); _tip.Hide(_ctl); _tip.Dispose(); _tip = null; _pos = Point.Empty; } }
void _tip_Disposed(object sender, EventArgs e) { if (sender == _tip) { //Logger.LogTrace("_tip_Disposed"); _tip = null; _pos = Point.Empty; } }
private bool ToolTipCreated() { //Logger.LogTrace("ToolTipCreated"); try { RemoveAll(); _tip = new OPMToolTip(); _tip.AutomaticDelay = this.AutomaticDelay; _tip.AutoPopDelay = this.AutoPopDelay; _tip.InitialDelay = this.InitialDelay; _tip.ReshowDelay = this.ReshowDelay; _tip.Disposed += new EventHandler(_tip_Disposed); _tip.Popup += new PopupEventHandler(_tip_Popup); //Logger.LogTrace("ToolTipCreated -> return True"); return true; } catch(Exception ex) { //Logger.LogTrace("ToolTipCreated esxception: {0}", ex.ToString()); //Logger.LogTrace("ToolTipCreated -> return False"); return false; } }