本文整理汇总了C#中ProgressBar.Init方法的典型用法代码示例。如果您正苦于以下问题:C# ProgressBar.Init方法的具体用法?C# ProgressBar.Init怎么用?C# ProgressBar.Init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProgressBar
的用法示例。
在下文中一共展示了ProgressBar.Init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TaskControls
public TaskControls(Manager manager)
: base(manager) {
MinimumWidth = 340;
MinimumHeight = 140;
Height = 480;
Center();
Text = "Controls Test";
TopPanel.Visible = true;
Caption.Text = "Information";
Description.Text = "Demonstration of various controls available in Window Library";
Caption.TextColor = Description.TextColor = new Color(96, 96, 96);
grpEdit = new GroupPanel(Manager);
grpEdit.Init();
grpEdit.Parent = this;
grpEdit.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right;
grpEdit.Width = ClientWidth - 200;
grpEdit.Height = 160;
grpEdit.Left = 8;
grpEdit.Top = TopPanel.Height + 8;
grpEdit.Text = "EditBox";
pnlControls = new Panel(Manager);
pnlControls.Init();
pnlControls.Passive = true;
pnlControls.Parent = this;
pnlControls.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right;
pnlControls.Left = 8;
pnlControls.Top = grpEdit.Top + grpEdit.Height + 8;
pnlControls.Width = ClientWidth - 200;
pnlControls.Height = BottomPanel.Top - 32 - pnlControls.Top;
pnlControls.BevelBorder = EBevelBorder.All;
pnlControls.BevelMargin = 1;
pnlControls.BevelStyle = EBevelStyle.Etched;
pnlControls.Color = Color.Transparent;
lblEdit = new Label(manager);
lblEdit.Init();
lblEdit.Parent = grpEdit;
lblEdit.Left = 16;
lblEdit.Top = 8;
lblEdit.Text = "Testing field:";
lblEdit.Width = 128;
lblEdit.Height = 16;
txtEdit = new TextBox(manager);
txtEdit.Init();
txtEdit.Parent = grpEdit;
txtEdit.Left = 16;
txtEdit.Top = 24;
txtEdit.Width = grpEdit.ClientWidth - 32;
txtEdit.Height = 20;
txtEdit.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right | EAnchors.Bottom;
txtEdit.Text = "Text";
rdbNormal = new RadioButton(manager);
rdbNormal.Init();
rdbNormal.Parent = grpEdit;
rdbNormal.Left = 16;
rdbNormal.Top = 52;
rdbNormal.Width = grpEdit.ClientWidth - 32;
rdbNormal.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right;
rdbNormal.Checked = true;
rdbNormal.Text = "Normal mode";
rdbNormal.ToolTip.Text = "Enables normal mode for TextBox control.";
rdbNormal.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(ModeChanged);
rdbPassword = new RadioButton(manager);
rdbPassword.Init();
rdbPassword.Parent = grpEdit;
rdbPassword.Left = 16;
rdbPassword.Top = 68;
rdbPassword.Width = grpEdit.ClientWidth - 32;
rdbPassword.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right;
rdbPassword.Checked = false;
rdbPassword.Text = "Password mode";
rdbPassword.ToolTip.Text = "Enables password mode for TextBox control.";
rdbPassword.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(ModeChanged);
chkBorders = new CheckBox(manager);
chkBorders.Init();
chkBorders.Parent = grpEdit;
chkBorders.Left = 16;
chkBorders.Top = 96;
chkBorders.Width = grpEdit.ClientWidth - 32;
chkBorders.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right;
chkBorders.Checked = false;
chkBorders.Text = "Borderless mode";
chkBorders.ToolTip.Text = "Enables or disables borderless mode for TextBox control.";
chkBorders.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(chkBorders_CheckedChanged);
chkReadOnly = new CheckBox(manager);
chkReadOnly.Init();
chkReadOnly.Parent = grpEdit;
chkReadOnly.Left = 16;
chkReadOnly.Top = 110;
chkReadOnly.Width = grpEdit.ClientWidth - 32;
chkReadOnly.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right;
chkReadOnly.Checked = false;
//.........这里部分代码省略.........