本文整理汇总了C#中BasicLib.Param.Parameters.GetGroup方法的典型用法代码示例。如果您正苦于以下问题:C# Parameters.GetGroup方法的具体用法?C# Parameters.GetGroup怎么用?C# Parameters.GetGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BasicLib.Param.Parameters
的用法示例。
在下文中一共展示了Parameters.GetGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init(Parameters parameters1, float paramNameWidth, int totalWidth)
{
Parameters = parameters1;
int nrows = Parameters.GroupCount;
parameterGroupPanels = new ParameterGroupPanel[nrows];
tableLayoutPanel = new TableLayoutPanel();
SuspendLayout();
tableLayoutPanel.ColumnCount = 1;
tableLayoutPanel.ColumnStyles.Clear();
tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
tableLayoutPanel.Dock = DockStyle.None;
tableLayoutPanel.Location = new Point(0, 0);
tableLayoutPanel.Name = "tableLayoutPanel";
tableLayoutPanel.RowCount = nrows + 1;
tableLayoutPanel.RowStyles.Clear();
float totalHeight = 0;
for (int i = 0; i < nrows; i++){
float h = parameters1.GetGroup(i).Height + 26;
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.AutoSize, h));
totalHeight += h + 6;
}
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100));
tableLayoutPanel.Size = new Size(totalWidth, (int) totalHeight);
tableLayoutPanel.TabIndex = 0;
for (int i = 0; i < nrows; i++){
AddParameterGroup(parameters1.GetGroup(i), i, paramNameWidth, totalWidth);
}
AutoScaleDimensions = new SizeF(6F, 13F);
AutoScaleMode = AutoScaleMode.Font;
Controls.Clear();
Controls.Add(tableLayoutPanel);
Name = "ParameterPanel";
Size = new Size(totalWidth, (int) totalHeight);
ResumeLayout(true);
}