// 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; }
// Remove a child from this window. public void RemoveChild(YesAndEditorWindow child) { Children.Remove(child); }
// Add a child window to this window. public void AddChild(YesAndEditorWindow child) { Children.Add(child); }