public BaseUI GetChildWindow(Type type) { for (int i = 0, max = _childWindows.Count; i < max; ++i) { BaseUI tmpChildWindow = _childWindows[i]; if (null != tmpChildWindow && tmpChildWindow.GetType() == type) { return(tmpChildWindow); } } return(null); }
public BaseUI GetChildWindowByName(string name) { for (int i = 0, max = _childWindows.Count; i < max; ++i) { BaseUI tmpChildWindow = _childWindows[i]; if (tmpChildWindow != null && tmpChildWindow.AssetName.Equals(name)) { return(tmpChildWindow); } } return(null); }
public T GetChildWindow <T>() where T : BaseUI { for (int i = 0, max = _childWindows.Count; i < max; ++i) { BaseUI tmpChildWindow = _childWindows[i]; if (null != tmpChildWindow && tmpChildWindow.GetType() == typeof(T)) { return(tmpChildWindow as T); } } return(null); }
public bool IsInGroup(BaseUI window) => _groupWindows.Contains(window);
public bool HasChild(BaseUI child) => _childWindows.Contains(child);