示例#1
0
 public Button(string Text, ButtonStyle Style)
     : this(Style)
 {
     this.Text = Text;
 }
示例#2
0
 public Button(ButtonStyle Style)
 {
     this._Style = Style;
 }
示例#3
0
文件: Form.cs 项目: alexcmd/OpenTKGUI
 /// <summary>
 /// Adds a button the the right of the titlebar of the form. Buttons will have no text on them and will be distinguishable only by style.
 /// </summary>
 public Button AddTitlebarButton(ButtonStyle Style, Control Client)
 {
     Button b = new Button(Style);
     if (Client != null)
     {
         b.Client = Client;
     }
     this.AddTitlebarItem(b, this._Style.TitleBarButtonWidth);
     return b;
 }