* IFrame:增加了判断页面是否存在的代码

This commit is contained in:
Sunny 2022-01-08 11:38:28 +08:00
parent c4f626c34a
commit 9d52d8d24d
3 changed files with 15 additions and 0 deletions

Binary file not shown.

View File

@ -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实现
}
}

View File

@ -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);
}
}