public void AddUI(UIElement ui) { #if DEBUG if (this.owner == ui) throw new Exception("cyclic!"); #endif ui.ParentUI = this.owner; uiList.Add(ui); }
public bool RemoveUI(UIElement ui) { //remove specific ui return uiList.Remove(ui); }
public UICollection(UIElement owner) { this.owner = owner; }