diff --git a/插件库/Lskj.PubModule/FrmMain.cs b/插件库/Lskj.PubModule/FrmMain.cs index 4a712ec..994e5dc 100644 --- a/插件库/Lskj.PubModule/FrmMain.cs +++ b/插件库/Lskj.PubModule/FrmMain.cs @@ -141,6 +141,7 @@ namespace Lskj.PubModule /// private void OnClose(object sender, FormClosingEventArgs e) { + this.mControl.CloseModule(); string guid = this.Tag + ""; if (string.IsNullOrWhiteSpace(guid)) return; DllModule m = Manager.ModuleForms[guid]; @@ -188,34 +189,4 @@ namespace Lskj.PubModule this.Width = this.Width > Screen.PrimaryScreen.WorkingArea.Width ? Screen.PrimaryScreen.WorkingArea.Width : this.Width; this.Height = this.Height > Screen.PrimaryScreen.WorkingArea.Height ? Screen.PrimaryScreen.WorkingArea.Height : this.Height; this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2; - this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2; - this.Resize += new EventHandler(FrmMain_Resize); - } - } - - /// - /// 说明:弹窗发生改变的时候 - /// 创建人:王一帆 - /// 创建日期:2020-11-25 - /// 修改人: - /// 修改日期: - /// 修改备注: - /// 版本:1.0 - /// - public void FrmMain_Resize(object sender, EventArgs e) - { - try - { - IniHelper.Write("ModuleGrid_Height_" + Model.ModuleCode, this.Height + ""); - IniHelper.Write("ModuleGrid_Width_" + Model.ModuleCode, this.Width + ""); - } - catch (Exception ex) - { - string Message = ErrorMessage.PromptErrorMessage(ex); - MessageUtil.Show(Message,ex.Message); - } - } - - #endregion - } -} + this.Top = (Screen.PrimaryScreen.WorkingArea.Height - t \ No newline at end of file