SVN-Revision: r931
This commit is contained in:
cyf
2025-08-07 09:34:44 +00:00
parent eea0657650
commit a0658f2c57
+2 -31
View File
@@ -141,6 +141,7 @@ namespace Lskj.PubModule
/// <param name="e"></param>
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);
}
}
/// <summary>
/// <para>说明:弹窗发生改变的时候</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-11-25 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
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