Inheritance: NppInterfaceForm.NppInterfaceForm
Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
 /// <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);
     }
 }
Beispiel #4
0
 /// <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);
     }
 }