示例#1
0
文件: Container.cs 项目: envy/Huddy
 /// <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);
 }
示例#2
0
文件: Container.cs 项目: envy/Huddy
 /// <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);
 }
示例#3
0
文件: Container.cs 项目: envy/Huddy
 /// <summary>
 /// Removes a <see cref="Control"/> from this container
 /// </summary>
 /// <param name="c"></param>
 public void Remove(Control c)
 {
     Children.Remove(c);
 }