diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index ee504e39..12d4e449 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index 8bf4b61d..c37f671f 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -1974,6 +1974,17 @@ namespace Sunny.UI return MainTabControl?.GetPage(guid); } + public virtual bool ExistPage(int pageIndex) + { + return GetPage(pageIndex) != null; + } + + public virtual bool ExistPage(Guid guid) + { + return GetPage(guid) != null; + } + + #endregion IFrame实现 } } \ No newline at end of file diff --git a/SunnyUI/Frames/IFrame.cs b/SunnyUI/Frames/IFrame.cs index bba0bf25..52629366 100644 --- a/SunnyUI/Frames/IFrame.cs +++ b/SunnyUI/Frames/IFrame.cs @@ -48,5 +48,9 @@ namespace Sunny.UI bool RemovePage(Guid guid); void Feedback(object sender, int pageIndex, params object[] objects); + + bool ExistPage(int index); + + bool ExistPage(Guid guid); } }