shim преди 8 години
родител
ревизия
b045cba3d7
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      UAS_DLLTest/Form1.cs

+ 4 - 0
UAS_DLLTest/Form1.cs

@@ -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;