chore(browser): sync current working implementation
Rollback tag: pre-current-browser-sync-20260818
This commit is contained in:
@@ -33,30 +33,7 @@ namespace Lskj.PubBrower2
|
||||
this.SubForm = main;
|
||||
this.SubForm.Text = moduleModel.FormText;
|
||||
main.PubBrowerModel = moduleModel;
|
||||
|
||||
// CEF must be created after the caller has established the final
|
||||
// WinForms owner/parent hierarchy and the form HWND exists.
|
||||
if (moduleModel.downLoadFlag == 1)
|
||||
{
|
||||
main.OnLoad();
|
||||
}
|
||||
else
|
||||
{
|
||||
EventHandler shown = null;
|
||||
shown = delegate
|
||||
{
|
||||
main.Shown -= shown;
|
||||
try
|
||||
{
|
||||
main.OnLoad();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PubBrower2.dll--初始化错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
};
|
||||
main.Shown += shown;
|
||||
}
|
||||
main.OnLoad();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user