本文整理汇总了C#中System.Windows.Forms.RadioButton.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# RadioButton.BringToFront方法的具体用法?C# RadioButton.BringToFront怎么用?C# RadioButton.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.RadioButton
的用法示例。
在下文中一共展示了RadioButton.BringToFront方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateGUI
//.........这里部分代码省略.........
location = new Point(x, num6);
arg_5BD_0.Location = location;
groupBox2.TabIndex = num2;
num2++;
int x2 = 10;
int num8 = 15;
int arg_5F9_0 = 0;
int num9 = [email protected][i].values[j].offset_options.Length - 1;
for (int k = arg_5F9_0; k <= num9; k++)
{
RadioButton radioButton = new RadioButton();
radioButton.Name = [email protected][i].values[j].offset_options[k].op_name.Replace(" ", "") + "RadioButton";
radioButton.Text = [email protected][i].values[j].offset_options[k].op_name;
radioButton.Tag = [email protected][i].values[j].offset_options[k].op_value;
if (Operators.ConditionalCompareObjectEqual([email protected][i].values[j].offset_options[k].op_value, [email protected][i].values[j].data, false))
{
radioButton.Checked = true;
}
else
{
radioButton.Checked = false;
}
Control arg_71F_0 = radioButton;
location = new Point(x2, num8);
arg_71F_0.Location = location;
Control arg_742_0 = radioButton;
size = new Size(radioButton.Name.Length * 5 + 15, 15);
arg_742_0.Size = size;
radioButton.TabIndex = num2 + k;
radioButton.CheckedChanged += new EventHandler(this.somethingChanged);
groupBox2.Controls.Add(radioButton);
radioButton.BringToFront();
if (k % 2 == 1)
{
x2 = 10;
num8 += 15;
}
else
{
x2 = (int)Math.Round((double)this.MetaTab.Width / 2.0);
}
}
groupBox.Controls.Add(groupBox2);
num6 += groupBox2.Height;
x = 10;
num2 += [email protected][i].values[j].offset_options.Length;
}
else
{
if (type.Equals("bitmask32"))
{
GroupBox groupBox3 = new GroupBox();
groupBox3.Tag = [email protected][i].values[j].offset;
groupBox3.Name = [email protected][i].values[j].name.Replace(" ", "") + "Group";
groupBox3.Text = [email protected][i].values[j].name;
groupBox3.Width = this.MetaTab.Width - 20;
groupBox3.Height = 20 + ([email protected][i].values[j].offset_options.Length / 2 + [email protected][i].values[j].offset_options.Length % 2) * 16;
groupBox3.TabIndex = num2;
Control arg_916_0 = groupBox3;
location = new Point(x, num6);
arg_916_0.Location = location;
示例2: Display
public void Display(QuestionDescriptor question)
{
if (question != null)
{
this.question = question;
this.textControl.Title = question.Text.Text;
this.textControl.Description = question.Description.Text;
this.textControl.Url = question.Url.Text;
this.textControl.BeginInfo();
this.textControl.InfoFont = new Font("Arial", 12);
RecalculateLayout();
this.optionControls = new Dictionary<InfoControl, int>();
this.optionsPanel.Controls.Clear();
if (question.MaxOptions == 1)
{
this.maxOptionLabel.Text = Resources.VotingDialogMaxOptionSingle;
this.singleOptionControls = new Dictionary<int, RadioButton>();
int index = 0;
int top = Space;
foreach (OptionDescriptor option in question.Options)
{
var optionInfo = AddOptionInfo(index, top, option);
RadioButton optionControl = new RadioButton();
optionControl.Text = string.Empty;
optionControl.Left = Space;
optionControl.Top = top + BoxTop;
optionControl.Height = optionInfo.Height;
optionControl.TextAlign = ContentAlignment.MiddleRight;
optionControl.Width = BoxWidth;
this.optionsPanel.Controls.Add(optionControl);
optionControl.BringToFront();
optionControl.CheckedChanged += new EventHandler(OptionControl_CheckedChanged);
this.singleOptionControls.Add(index, optionControl);
top += optionControl.Height + VerticalSpace;
index++;
}
}
else
{
this.maxOptionLabel.Text = string.Format(Resources.VotingDialogMaxOptionMulti, question.MaxOptions);
this.multiOptionControls = new Dictionary<int, CheckBox>();
int index = 0;
int top = Space;
foreach (OptionDescriptor option in question.Options)
{
if (!option.IsAbstentionSpecial)
{
var optionInfo = AddOptionInfo(index, top, option);
CheckBox optionControl = new CheckBox();
optionControl.Text = string.Empty;
optionControl.Top = top + BoxTop;
optionControl.Width = BoxWidth;
optionControl.Height = optionInfo.Height;
optionControl.TextAlign = ContentAlignment.MiddleRight;
this.optionsPanel.Controls.Add(optionControl);
optionControl.BringToFront();
optionControl.CheckedChanged += new EventHandler(OptionControl_CheckedChanged);
this.multiOptionControls.Add(index, optionControl);
top += optionControl.Height + VerticalSpace;
}
index++;
}
}
}
}