bird_tool.Designer.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. using System.Windows.Forms;
  2. using System.Drawing;
  3. namespace Bird_tool
  4. {
  5. partial class bird_tool
  6. {
  7. /// <summary>
  8. /// Required designer variable.
  9. /// </summary>
  10. private System.ComponentModel.IContainer components = null;
  11. /// <summary>
  12. /// Clean up any resources being used.
  13. /// </summary>
  14. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  15. protected override void Dispose(bool disposing)
  16. {
  17. if (disposing && (components != null))
  18. {
  19. components.Dispose();
  20. }
  21. base.Dispose(disposing);
  22. }
  23. #region Windows Form Designer generated code
  24. // 显示日志窗口
  25. /// <summary>
  26. /// Required method for Designer support - do not modify
  27. /// the contents of this method with the code editor.
  28. /// </summary>
  29. private void InitializeComponent()
  30. {
  31. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(bird_tool));
  32. this.el_serialList = new System.Windows.Forms.ComboBox();
  33. this.el_btn_refresh = new System.Windows.Forms.Button();
  34. this.el_btn_conn = new System.Windows.Forms.Button();
  35. this.el_btn_hw_test = new System.Windows.Forms.Button();
  36. this.el_btn_config = new System.Windows.Forms.Button();
  37. this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
  38. this.tableLayoutPanel.SuspendLayout();
  39. this.SuspendLayout();
  40. this.topPanel = new System.Windows.Forms.Panel();
  41. //
  42. // el_serialList
  43. //
  44. this.el_serialList.Font = new System.Drawing.Font("宋体", 15F);
  45. this.el_serialList.FormattingEnabled = true;
  46. this.el_serialList.Location = new System.Drawing.Point(13, 12);
  47. this.el_serialList.Name = "el_serialList";
  48. this.el_serialList.Size = new System.Drawing.Size(179, 28);
  49. this.el_serialList.TabIndex = 0;
  50. this.el_serialList.Text = "选择串口";
  51. //
  52. // el_btn_refresh
  53. //
  54. this.el_btn_refresh.BackColor = System.Drawing.SystemColors.ActiveBorder;
  55. this.el_btn_refresh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("el_btn_refresh.BackgroundImage")));
  56. this.el_btn_refresh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
  57. this.el_btn_refresh.Font = new System.Drawing.Font("宋体", 15F);
  58. this.el_btn_refresh.Image = ((System.Drawing.Image)(resources.GetObject("el_btn_refresh.Image")));
  59. this.el_btn_refresh.Location = new System.Drawing.Point(197, 11);
  60. this.el_btn_refresh.Margin = new System.Windows.Forms.Padding(2);
  61. this.el_btn_refresh.Name = "el_btn_refresh";
  62. this.el_btn_refresh.Size = new System.Drawing.Size(30, 30);
  63. this.el_btn_refresh.TabIndex = 1;
  64. this.el_btn_refresh.UseVisualStyleBackColor = false;
  65. this.el_btn_refresh.Click += new System.EventHandler(this.Evt_refresh);
  66. //
  67. // el_btn_conn
  68. //
  69. this.el_btn_conn.BackColor = System.Drawing.SystemColors.ControlLight;
  70. this.el_btn_conn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
  71. this.el_btn_conn.Font = new System.Drawing.Font("宋体", 15F);
  72. this.el_btn_conn.Location = new System.Drawing.Point(231, 11);
  73. this.el_btn_conn.Margin = new System.Windows.Forms.Padding(2);
  74. this.el_btn_conn.Name = "el_btn_conn";
  75. this.el_btn_conn.Size = new System.Drawing.Size(120, 30);
  76. this.el_btn_conn.TabIndex = 1;
  77. this.el_btn_conn.Text = "连接串口";
  78. this.el_btn_conn.UseVisualStyleBackColor = false;
  79. this.el_btn_conn.Click += new System.EventHandler(this.Evt_conn_click);
  80. //
  81. // el_btn_hw_test
  82. //
  83. this.el_btn_hw_test.Anchor = System.Windows.Forms.AnchorStyles.None;
  84. this.el_btn_hw_test.BackColor = System.Drawing.SystemColors.Control;
  85. this.el_btn_hw_test.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
  86. this.el_btn_hw_test.Cursor = System.Windows.Forms.Cursors.No;
  87. this.el_btn_hw_test.Enabled = false;
  88. this.el_btn_hw_test.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  89. this.el_btn_hw_test.Font = new System.Drawing.Font("宋体", 24F);
  90. this.el_btn_hw_test.ForeColor = System.Drawing.SystemColors.GrayText;
  91. this.el_btn_hw_test.Location = new System.Drawing.Point(105, 208);
  92. this.el_btn_hw_test.Margin = new System.Windows.Forms.Padding(2);
  93. this.el_btn_hw_test.Name = "el_btn_hw_test";
  94. this.el_btn_hw_test.Size = new System.Drawing.Size(270, 140);
  95. this.el_btn_hw_test.TabIndex = 1;
  96. this.el_btn_hw_test.Text = "硬件测试";
  97. this.el_btn_hw_test.UseVisualStyleBackColor = false;
  98. this.el_btn_hw_test.Click += new System.EventHandler(this.Evt_hw_click);
  99. //
  100. // el_btn_config
  101. //
  102. this.el_btn_config.Anchor = System.Windows.Forms.AnchorStyles.None;
  103. this.el_btn_config.BackColor = System.Drawing.SystemColors.Control;
  104. this.el_btn_config.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
  105. this.el_btn_config.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  106. this.el_btn_config.Font = new System.Drawing.Font("宋体", 24F);
  107. this.el_btn_config.ForeColor = System.Drawing.SystemColors.ButtonShadow;
  108. this.el_btn_config.Location = new System.Drawing.Point(586, 208);
  109. this.el_btn_config.Margin = new System.Windows.Forms.Padding(2);
  110. this.el_btn_config.Name = "el_btn_config";
  111. this.el_btn_config.Size = new System.Drawing.Size(270, 140);
  112. this.el_btn_config.TabIndex = 1;
  113. this.el_btn_config.Text = "出货配置";
  114. this.el_btn_config.UseVisualStyleBackColor = false;
  115. this.el_btn_config.Click += new System.EventHandler(this.Evt_conn_click);
  116. //
  117. // tableLayoutPanel
  118. //
  119. this.tableLayoutPanel.ColumnCount = 3;
  120. this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
  121. this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
  122. this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
  123. this.tableLayoutPanel.Controls.Add(this.el_btn_hw_test, 0, 1);
  124. this.tableLayoutPanel.Controls.Add(this.el_btn_config, 2, 1);
  125. this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  126. this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
  127. this.tableLayoutPanel.Name = "tableLayoutPanel";
  128. this.tableLayoutPanel.RowCount = 3;
  129. this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
  130. this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
  131. this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
  132. this.tableLayoutPanel.Size = new System.Drawing.Size(962, 557);
  133. this.tableLayoutPanel.TabIndex = 2;
  134. //Console.WriteLine("TableLayoutPanel visible: " + tableLayoutPanel.Visible);
  135. // 添加新的WiFi输入控件
  136. this.lbl_ssid = new System.Windows.Forms.Label();
  137. this.txt_ssid = new System.Windows.Forms.TextBox();
  138. this.lbl_password = new System.Windows.Forms.Label();
  139. this.txt_password = new System.Windows.Forms.TextBox();
  140. this.panelWifi = new System.Windows.Forms.Panel();
  141. this.btn_connect_wifi = new System.Windows.Forms.Button();
  142. progressPanel = new ProgressPanel
  143. {
  144. Dock = DockStyle.Fill,
  145. Visible = false,
  146. TabIndex = 4
  147. };
  148. progressPanel.OnLogRequested += (s, ev) => ShowLogWindow();
  149. progressPanel.OnStopRequested += (s, ev) => StopTest();
  150. progressPanel.OnStartRequested += (s, ev) => start_query_test();
  151. progressPanel.OnReturnRequested += (s, ev) => re_main();
  152. progressPanel.StepList.OnStepButtonClick += setpStart;
  153. // 添加WiFi配置面板
  154. // panelWifi (单行布局)
  155. this.panelWifi.BackColor = System.Drawing.SystemColors.ControlLight;
  156. this.panelWifi.Controls.Add(this.lbl_ssid);
  157. this.panelWifi.Controls.Add(this.txt_ssid);
  158. this.panelWifi.Controls.Add(this.lbl_password);
  159. this.panelWifi.Controls.Add(this.txt_password);
  160. this.panelWifi.Controls.Add(this.btn_connect_wifi);
  161. this.panelWifi.Location = new System.Drawing.Point(360, 10); // 移到串口控件右侧
  162. this.panelWifi.Size = new System.Drawing.Size(550, 40); // 单行高度
  163. this.panelWifi.TabIndex = 3;
  164. // lbl_ssid
  165. this.lbl_ssid.AutoSize = true;
  166. this.lbl_ssid.Font = new System.Drawing.Font("宋体", 9F);
  167. this.lbl_ssid.Location = new System.Drawing.Point(5, 12);
  168. this.lbl_ssid.Name = "lbl_ssid";
  169. this.lbl_ssid.Size = new System.Drawing.Size(60, 12);
  170. this.lbl_ssid.TabIndex = 0;
  171. this.lbl_ssid.Text = "WiFi名称:";
  172. // txt_ssid
  173. this.txt_ssid.Font = new System.Drawing.Font("宋体", 9F);
  174. this.txt_ssid.Location = new System.Drawing.Point(65, 9);
  175. this.txt_ssid.Name = "txt_ssid";
  176. this.txt_ssid.Size = new System.Drawing.Size(120, 21);
  177. this.txt_ssid.TabIndex = 1;
  178. this.txt_ssid.Text = "hf_test";
  179. // lbl_password
  180. this.lbl_password.AutoSize = true;
  181. this.lbl_password.Font = new System.Drawing.Font("宋体", 9F);
  182. this.lbl_password.Location = new System.Drawing.Point(190, 12);
  183. this.lbl_password.Name = "lbl_password";
  184. this.lbl_password.Size = new System.Drawing.Size(60, 12);
  185. this.lbl_password.TabIndex = 2;
  186. this.lbl_password.Text = "WiFi密码:";
  187. // txt_password
  188. this.txt_password.Font = new System.Drawing.Font("宋体", 9F);
  189. this.txt_password.Location = new System.Drawing.Point(250, 9);
  190. this.txt_password.Name = "txt_password";
  191. this.txt_password.Size = new System.Drawing.Size(120, 21);
  192. this.txt_password.TabIndex = 3;
  193. this.txt_password.Text = "12345678";
  194. // btn_connect_wifi
  195. this.btn_connect_wifi.BackColor = System.Drawing.SystemColors.Control;
  196. this.btn_connect_wifi.Font = new System.Drawing.Font("宋体", 9F);
  197. this.btn_connect_wifi.Location = new System.Drawing.Point(380, 8);
  198. this.btn_connect_wifi.Name = "btn_connect_wifi";
  199. this.btn_connect_wifi.Size = new System.Drawing.Size(80, 24);
  200. this.btn_connect_wifi.TabIndex = 4;
  201. this.btn_connect_wifi.Text = "设置wifi";
  202. this.btn_connect_wifi.UseVisualStyleBackColor = false;
  203. this.btn_connect_wifi.Click += new System.EventHandler(this.Evt_set_wifi);
  204. // 调整串口控件位置
  205. this.el_serialList.Location = new System.Drawing.Point(13, 15);
  206. this.el_btn_refresh.Location = new System.Drawing.Point(197, 14);
  207. this.el_btn_conn.Location = new System.Drawing.Point(231, 14);
  208. this.topPanel.Controls.Add(this.el_serialList);
  209. this.topPanel.Controls.Add(this.el_btn_refresh);
  210. this.topPanel.Controls.Add(this.el_btn_conn);
  211. this.topPanel.Controls.Add(this.panelWifi);
  212. this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
  213. this.topPanel.Location = new System.Drawing.Point(0, 0);
  214. this.topPanel.Name = "topPanel";
  215. this.topPanel.Size = new System.Drawing.Size(962, 60); // 减小高度
  216. this.topPanel.TabIndex = 4;
  217. this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
  218. this.tableLayoutPanel.Location = new System.Drawing.Point(0, 60); // 从顶部面板下方开始
  219. this.tableLayoutPanel.Size = new System.Drawing.Size(962, 497); // 高度增加
  220. //
  221. // bird_tool
  222. //
  223. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  224. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  225. this.ClientSize = new System.Drawing.Size(962, 557);
  226. this.Controls.Add(this.tableLayoutPanel);
  227. this.Controls.Add(progressPanel);
  228. this.Controls.Add(this.topPanel); // 添加顶部面板
  229. this.KeyPreview = true;
  230. this.Name = "bird_tool";
  231. this.Text = "观鸟器测试工具";
  232. this.Load += new System.EventHandler(this.Tool_load);
  233. this.tableLayoutPanel.ResumeLayout(false);
  234. this.ResumeLayout(false);
  235. }
  236. #endregion
  237. //private System.Windows.Forms.Timer _timeoutTimer;
  238. private System.Windows.Forms.Panel topPanel;
  239. private System.Windows.Forms.ComboBox el_serialList;
  240. private System.Windows.Forms.Button el_btn_refresh;
  241. private System.Windows.Forms.Button el_btn_conn;
  242. // 居中组件
  243. private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
  244. // 选择项目按钮
  245. private System.Windows.Forms.Button el_btn_hw_test;
  246. private System.Windows.Forms.Button el_btn_config;
  247. // 测试进度面板
  248. private ProgressPanel progressPanel;
  249. // wifi信息面板
  250. private System.Windows.Forms.Panel panelWifi;
  251. private System.Windows.Forms.Label lbl_ssid;
  252. private System.Windows.Forms.TextBox txt_ssid;
  253. private System.Windows.Forms.Label lbl_password;
  254. private System.Windows.Forms.TextBox txt_password;
  255. System.Windows.Forms.Button btn_connect_wifi;
  256. }
  257. }