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