|
|
@@ -57,6 +57,10 @@ namespace UAS_DLLTest
|
|
|
btn.Location = new Point((Methods.Width / 6 - btn.Width) / 2 + (i % RowItemCount) * (Methods.Width / RowItemCount), 25 + (i / RowItemCount) * (btn.Height));
|
|
|
Methods.Controls.Add(btn);
|
|
|
btn.CheckedChanged += new EventHandler(radioButton_checkChanged);
|
|
|
+ if (i==0)
|
|
|
+ {
|
|
|
+ btn.Checked = true;
|
|
|
+ }
|
|
|
}
|
|
|
//是否剩下一行没装满的
|
|
|
int LastRow = ShowMethods.Count % RowItemCount == 0 ? 0 : 1;
|