Пример #1
0
 /// <summary>
 /// Form
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="title">Title</param>
 /// <param name="size">Size</param>
 /// <param name="position">Position</param>
 /// <param name="style">Border Style</param>
 public Form(string name, string title, Vector2 size, Vector2 position, BorderStyle style)
     : base(name, position)
 {
     this.Title = title;
     this.Size = size;
     this.Visible = false;
     this.style = style;
     this.controls = new ControlCollection(this);
 }
Пример #2
0
 /// <summary>
 /// Form
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="style">Border Style</param>
 public Form(string name, BorderStyle style)
     : base(name)
 {
     this.Size = new Vector2(200f, 100f);
     this.Visible = false;
     this.style = style;
     this.controls = new ControlCollection(this);
 }