Inheritance: YamuiFramework.Forms.YamuiForm
Beispiel #1
0
 /// <summary>
 /// Initializes the main application, since other windows uses this Form reference,
 /// it must be called pretty soon in the plugin initialization
 /// </summary>
 public static void Init()
 {
     ForceClose();
     _form = new AppliForm {
         CurrentForegroundWindow = Npp.Handle
     };
 }
Beispiel #2
0
 /// <summary>
 /// Initializes the main application, since other windows uses this Form reference,
 /// it must be called pretty soon in the plugin initialization
 /// </summary>
 public static void Init()
 {
     if (_form != null)
     {
         ForceClose();
     }
     _form = new AppliForm {
         CurrentForegroundWindow = Npp.HandleNpp
     };
 }
Beispiel #3
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 #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);
     }
 }
Beispiel #5
0
 /// <summary>
 /// Initializes the main application, since other windows uses this Form reference, 
 /// it must be called pretty soon in the plugin initialization
 /// </summary>
 public static void Init()
 {
     if (_form != null) ForceClose();
     _form = new AppliForm {
         CurrentForegroundWindow = Npp.HandleNpp
     };
 }