Ejemplo n.º 1
0
        public CWindowRootView(CWindow window, float width, float height)
            : base(width, height)
        {
            if (window == null)
            {
                throw new NullReferenceException("Parent is null");
            }

            m_window = window;
        }
Ejemplo n.º 2
0
        //////////////////////////////////////////////////////////////////////////////

        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);
        }
Ejemplo n.º 3
0
 private static void RemoveWindow(CWindow window)
 {
     m_windows.Remove(window);
 }