public CWindowRootView(CWindow window, float width, float height) : base(width, height) { if (window == null) { throw new NullReferenceException("Parent is null"); } m_window = window; }
////////////////////////////////////////////////////////////////////////////// private static void AddWindow(CWindow window) { // there're might be duplicates from the serialization for (int i = m_windows.Count - 1; i >= 0; --i) { CWindow current = m_windows[i]; if (current.Tag != null && current.Tag.Length > 0 && current.Tag == window.Tag) { m_windows.RemoveAt(i); } } m_windows.Add(window); }
private static void RemoveWindow(CWindow window) { m_windows.Remove(window); }