Inheritance: NppInterfaceForm.NppInterfaceForm
示例#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);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }