Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Removes a <see cref="Control"/> from this container
 /// </summary>
 /// <param name="c"></param>
 public void Remove(Control c)
 {
     Children.Remove(c);
 }