コード例 #1
0
        // Set this window's parent window.
        public void SetParent(YesAndEditorWindow parent)
        {
            // Remove old parent.
            if (Parent != null)
            {
                parent.RemoveChild(this);
            }

            // Setup new parent.
            if (parent != null)
            {
                parent.AddChild(this);
            }

            // Switch parents.
            Parent = parent;
        }
コード例 #2
0
 // Remove a child from this window.
 public void RemoveChild(YesAndEditorWindow child)
 {
     Children.Remove(child);
 }
コード例 #3
0
 // Add a child window to this window.
 public void AddChild(YesAndEditorWindow child)
 {
     Children.Add(child);
 }