优化模块资源释放与异步预加载
This commit is contained in:
@@ -295,9 +295,14 @@ namespace Lskj.PubAccraditation
|
||||
tp.Controls.Add(frm);
|
||||
tp.ShowCloseButton = DefaultBoolean.True;
|
||||
tp.Dock = DockStyle.Fill;
|
||||
StaticControl.ModuleResourceScope moduleScope =
|
||||
StaticControl.RegisterModulePage(module, tp, frm);
|
||||
ERPInfo.Instance.AddModulePage(tp);
|
||||
ERPInfo.Instance.CurrentModulePage = tp;
|
||||
frm.Show();
|
||||
using (StaticControl.PushModuleScope(moduleScope))
|
||||
{
|
||||
frm.Show();
|
||||
}
|
||||
tp.Text = frm.Text;
|
||||
ERPInfo.Instance.ModuleForms.Add(guid, module);
|
||||
}
|
||||
@@ -382,9 +387,14 @@ namespace Lskj.PubAccraditation
|
||||
tp.Controls.Add(frm);
|
||||
tp.ShowCloseButton = DefaultBoolean.True;
|
||||
tp.Dock = DockStyle.Fill;
|
||||
StaticControl.ModuleResourceScope moduleScope =
|
||||
StaticControl.RegisterModulePage(module, tp, frm);
|
||||
ERPInfo.Instance.AddModulePage(tp);
|
||||
ERPInfo.Instance.CurrentModulePage = tp;
|
||||
frm.Show();
|
||||
using (StaticControl.PushModuleScope(moduleScope))
|
||||
{
|
||||
frm.Show();
|
||||
}
|
||||
tp.Text = frm.Text;
|
||||
ERPInfo.Instance.ModuleForms.Add(guid, module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user