/// <summary> /// Forces the form to close, only when leaving npp /// </summary> public static void ForceClose() { try { if (_form != null) { _form.ForceClose(); } _form = null; } catch (Exception e) { ErrorHandler.LogError(e); } }
/// <summary> /// Method to init the tooltip form if needed /// </summary> public static void InitIfneeded() { // instanciate the form if (_form == null) { _form = new InfoToolTipForm { UnfocusedOpacity = Config.Instance.ToolTipOpacity, FocusedOpacity = Config.Instance.ToolTipOpacity }; _form.Show(Npp.Win32WindowNpp); _form.SetLinkClickedEvent(ClickHandler); } }
/// <summary> /// Forces the form to close, only when leaving npp /// </summary> public static void ForceClose() { try { if (_form != null) _form.ForceClose(); _form = null; } catch (Exception e) { ErrorHandler.LogError(e); } }