コード例 #1
0
ファイル: GUIElement.cs プロジェクト: tylermenezes/ROIDS
 public void RemoveControl(Control control)
 {
     control.Destroy();
     if (ActiveControl == control)
         ActiveControl = null;
     Controls.Remove(control);
 }
コード例 #2
0
ファイル: GUIElement.cs プロジェクト: tylermenezes/ROIDS
 public void AddControl(Control control, bool makeActive)
 {
     Controls.Add(control);
     control.setParent(this);
     if (makeActive)
         this.ActiveControl = control;
     //control.Location = new Vector2(
     //            control.Location.X + location.X,
     //            control.Location.Y + location.Y);
 }