Пример #1
0
 public void Add(UIObject uiObject)
 {
     uiObject.Parent = this;
     uiObject.GUIManager = GUIManager;
     uiObject.Initialize();
     Elements.Add(uiObject);
 }
Пример #2
0
 private void OnLeftMouseButtonDown()
 {
     FocusedElement = Elements.FoundFocus(MouseHelper.X, MouseHelper.Y);
     if (FocusedElement != null)
         FocusedElement.LeftMouseButtonDown();
 }
Пример #3
0
 public void Add(UIObject uiobject)
 {
     Elements.Add(uiobject);
 }
Пример #4
0
 public void SetToFront(UIObject uiobject)
 {
     Elements.Remove(uiobject);
     Elements.Insert(0, uiobject);
     if (Parent != null)
         Parent.SetToFront(this);
 }
Пример #5
0
 public void Remove(UIObject uiObject)
 {
     Elements.Remove(uiObject);
 }
Пример #6
0
 public bool Exist(UIObject uiObject)
 {
     return Elements.Any(u => u == uiObject);
 }