/// <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 }; }
/// <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 }; }
/// <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> /// 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> /// 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 }; }