Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public bool IsInGroup(BaseUI window) => _groupWindows.Contains(window);
Beispiel #5
0
 public bool HasChild(BaseUI child) => _childWindows.Contains(child);