lu
2025-04-25 91a3be4ec1a61bbeb2271efd51fb23e6bfcf5184
DevApp/Gs.DevApp/DevFrm/FrmMain.cs
@@ -384,7 +384,7 @@
                newForm.Dock = DockStyle.Fill;
                newForm.Visible = true;
                //实现子窗体的委托beg
                EventInfo evt = newForm.GetType().GetEvent("UpdateParent",
                EventInfo evt = newForm.GetType().GetEvent("ToUpdateParent",
                    BindingFlags.NonPublic | BindingFlags.Instance
                    | BindingFlags.Public
                );
@@ -429,6 +429,8 @@
                    string tabText = dy.name.ToString(); //当前选项卡页Text标题
                    string newFormName = dy.formPath.ToString(); //存路径,类名
                    Image imgIcon = UtilityHelper.GetImgFromResource(dy.icon.ToString(), 2);
                    //先关闭
                    RemoveTabPage(tab, tabPageName);
                    AddTabpage(tab, tabPageName, tabText,newFormName, imgIcon, _parm1);
                }
            }