Inheritance: YamuiFramework.Forms.YamuiForm
示例#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
     };
 }
示例#2
0
文件: Appli.cs 项目: devjerome/3P
 /// <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
     };
 }
示例#3
0
文件: Appli.cs 项目: jcaillon/3P
 /// <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);
     }
 }
示例#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);
     }
 }
示例#5
0
文件: Appli.cs 项目: jcaillon/3P
 /// <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
     };
 }