* IFrame:增加了判断页面是否存在的代码
This commit is contained in:
parent
c4f626c34a
commit
9d52d8d24d
Binary file not shown.
@ -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实现
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user