public void RemoveControl(Control control) { control.Destroy(); if (ActiveControl == control) ActiveControl = null; Controls.Remove(control); }
void EditorConsole_Deselected(Control sender) { CommandBox.Text = ActiveObject; CommandBox.ForeColor = AcceptedColor; }
public void AddControl(Control control) { Controls.Add(control); control.setParent(this); //control.Location = new Vector2( // control.Location.X + location.X, // control.Location.Y + location.Y); }
void EditorConsole_Selected(Control sender) { NuetralizeConsole(); CommandBox.Text = String.Empty; }