feat(legacy): add shell-independent module page compatibility
This commit is contained in:
@@ -61,6 +61,17 @@ namespace Lskj.Main.Hosting
|
||||
Manager.ExternalMainShell = externalMainShell;
|
||||
try
|
||||
{
|
||||
// A standalone Ls_ERP process must always start in the
|
||||
// original WinForms page mode. Clear any stale host
|
||||
// references before FrmMain is created so Manager.OpenModule
|
||||
// cannot accidentally route pages to a previous WPF shell
|
||||
// when the legacy runtime is reused in-process.
|
||||
if (externalMainShell == null)
|
||||
{
|
||||
ERPInfo.Instance.ModulePageHost = null;
|
||||
ERPInfo.Instance.PageControl = null;
|
||||
Manager.TabMain = null;
|
||||
}
|
||||
Program.InitializeMainProcess();
|
||||
_mainProcessInitialized = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user