/// <summary> /// Adds a <see cref="Control"/> to this container /// </summary> /// <param name="c">The control which should be added</param> public void Add(Control c) { c.SpriteBatch = SpriteBatch; c.Graphics = Graphics; c.Parent = this; Children.Add(c); }
/// <summary> /// Checks whether this container contains a certain <see cref="Control"/> /// </summary> /// <param name="c"></param> /// <returns></returns> public bool Contains(Control c) { return Children.Contains(c); }
/// <summary> /// Removes a <see cref="Control"/> from this container /// </summary> /// <param name="c"></param> public void Remove(Control c) { Children.Remove(c); }