本文整理汇总了C#中Label.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# Label.Hide方法的具体用法?C# Label.Hide怎么用?C# Label.Hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Label
的用法示例。
在下文中一共展示了Label.Hide方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RadioButtonSample
public RadioButtonSample()
{
var b1 = new RadioButton ("Item 1");
var b2 = new RadioButton ("Item 2 (red background)");
b2.BackgroundColor = Xwt.Drawing.Colors.Red;
var b3 = new RadioButton ("Item 3");
b2.Group = b3.Group = b1.Group;
PackStart (b1);
PackStart (b2);
PackStart (b3);
var la = new Label ();
la.Hide ();
b1.Group.ActiveRadioButtonChanged += delegate {
la.Show ();
la.Text = "Active: " + b1.Group.ActiveRadioButton.Label;
};
PackStart (la);
PackStart (new HSeparator ());
var box = new VBox ();
box.PackStart (new Label ("First Option"));
box.PackStart (new Label ("Second line"));
var b4 = new RadioButton (box);
var b5 = new RadioButton ("Second Option");
var b6 = new RadioButton ("Disabled Option") { Sensitive = false };
PackStart (b4);
PackStart (b5);
PackStart (b6);
b4.Group = b5.Group = b6.Group;
}
示例2: kitMapReport
public kitMapReport(string name)
: base(name)
{
enabled = true;
base.BackColor = Color.Transparent;
lstMaps = new ListBox("lstMaps");
lstMaps.Location = new Point(5, 5);
lstMaps.MultiSelect = false;
lstMaps.Height = 300;
for (int i = 0; i < 10; i++) {
ListBoxTextItem lbiMaps = new ListBoxTextItem(Graphics.FontManager.LoadFont("tahoma", 10), "");//(i + 1) + ": " + MapName);
lstMaps.Items.Add(lbiMaps);
}
vsbMaps = new VScrollBar("vsbMaps");
vsbMaps.ValueChanged += new EventHandler<ValueChangedEventArgs>(vsbMaps_ValueChanged);
vsbMaps.Maximum = 0;
btnLoadMapNames = new Button("btnLoadMapNames");
btnLoadMapNames.Size = new Size(100, 30);
btnLoadMapNames.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
btnLoadMapNames.Text = "Load Maps";
Skins.SkinManager.LoadButtonGui(btnLoadMapNames);
btnLoadMapNames.Click += new EventHandler<MouseButtonEventArgs>(btnLoadMapNames_Click);
lblFindMap = new Label("lblFindMap");
lblFindMap.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
lblFindMap.AutoSize = true;
lblFindMap.Text = "Search for maps";
lblFindMap.ForeColor = Color.WhiteSmoke;
lblFindMap.Hide();
txtFindMap = new TextBox("txtFindMap");
txtFindMap.KeyDown += new EventHandler<SdlDotNet.Input.KeyboardEventArgs>(txtFindMap_KeyDown);
txtFindMap.Hide();
lstFindResults = new ListBox("lstFindResults");
lstFindResults.MultiSelect = false;
lstFindResults.Hide();
this.AddWidget(lstMaps);
this.AddWidget(vsbMaps);
this.AddWidget(btnLoadMapNames);
this.AddWidget(lblFindMap);
this.AddWidget(txtFindMap);
this.AddWidget(lstFindResults);
}