diff --git a/SunnyUI/Controls/UITabControl.cs b/SunnyUI/Controls/UITabControl.cs index fbdf460e..1b6fdef7 100644 --- a/SunnyUI/Controls/UITabControl.cs +++ b/SunnyUI/Controls/UITabControl.cs @@ -938,22 +938,7 @@ namespace Sunny.UI if (SelectedIndex >= 0) { - List pages; - //if (LastIndex != SelectedIndex) - //{ - // if (LastIndex >= 0 && TabPages.Count > 0 && LastIndex < TabPages.Count) - // { - // pages = TabPages[LastIndex].GetControls(); - // foreach (var page in pages) - // { - // page.Final(); - // } - // } - // - // LastIndex = SelectedIndex; - //} - - pages = TabPages[SelectedIndex].GetControls(); + List pages = TabPages[SelectedIndex].GetControls(); foreach (var page in pages) { page.ReLoad(); diff --git a/SunnyUI/Frames/UIPage.cs b/SunnyUI/Frames/UIPage.cs index 30fa70f5..751c59f1 100644 --- a/SunnyUI/Frames/UIPage.cs +++ b/SunnyUI/Frames/UIPage.cs @@ -35,6 +35,7 @@ * 2022-10-28: V3.2.6 标题栏增加扩展按钮 * 2023-02-24: V3.3.2 增加PageDeselecting,取消页面选择时增加判断 * 2023-02-24: V3.3.2 取消设计期的Dock.Fill,改为运行时设置 + * 2023-03-15: V3.3.3 重新梳理页面加载顺序 ******************************************************************************/ using System; @@ -505,7 +506,7 @@ namespace Sunny.UI IsShown = true; } - public void ReLoad() + internal void ReLoad() { if (IsShown) {