123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- using System.Windows.Forms;
- using System.Drawing;
- namespace Bird_tool
- {
- partial class bird_tool
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows Form Designer generated code
- // 显示日志窗口
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(bird_tool));
- this.el_serialList = new System.Windows.Forms.ComboBox();
- this.el_btn_refresh = new System.Windows.Forms.Button();
- this.el_btn_conn = new System.Windows.Forms.Button();
- this.el_btn_hw_test = new System.Windows.Forms.Button();
- this.el_btn_config = new System.Windows.Forms.Button();
- this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
- this.tableLayoutPanel.SuspendLayout();
- this.SuspendLayout();
- this.topPanel = new System.Windows.Forms.Panel();
- //
- // el_serialList
- //
- this.el_serialList.Font = new System.Drawing.Font("宋体", 15F);
- this.el_serialList.FormattingEnabled = true;
- this.el_serialList.Location = new System.Drawing.Point(13, 12);
- this.el_serialList.Name = "el_serialList";
- this.el_serialList.Size = new System.Drawing.Size(179, 28);
- this.el_serialList.TabIndex = 0;
- this.el_serialList.Text = "选择串口";
- //
- // el_btn_refresh
- //
- this.el_btn_refresh.BackColor = System.Drawing.SystemColors.ActiveBorder;
- this.el_btn_refresh.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("el_btn_refresh.BackgroundImage")));
- this.el_btn_refresh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.el_btn_refresh.Font = new System.Drawing.Font("宋体", 15F);
- this.el_btn_refresh.Image = ((System.Drawing.Image)(resources.GetObject("el_btn_refresh.Image")));
- this.el_btn_refresh.Location = new System.Drawing.Point(197, 11);
- this.el_btn_refresh.Margin = new System.Windows.Forms.Padding(2);
- this.el_btn_refresh.Name = "el_btn_refresh";
- this.el_btn_refresh.Size = new System.Drawing.Size(30, 30);
- this.el_btn_refresh.TabIndex = 1;
- this.el_btn_refresh.UseVisualStyleBackColor = false;
- this.el_btn_refresh.Click += new System.EventHandler(this.Evt_refresh);
- //
- // el_btn_conn
- //
- this.el_btn_conn.BackColor = System.Drawing.SystemColors.ControlLight;
- this.el_btn_conn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.el_btn_conn.Font = new System.Drawing.Font("宋体", 15F);
- this.el_btn_conn.Location = new System.Drawing.Point(231, 11);
- this.el_btn_conn.Margin = new System.Windows.Forms.Padding(2);
- this.el_btn_conn.Name = "el_btn_conn";
- this.el_btn_conn.Size = new System.Drawing.Size(120, 30);
- this.el_btn_conn.TabIndex = 1;
- this.el_btn_conn.Text = "连接串口";
- this.el_btn_conn.UseVisualStyleBackColor = false;
- this.el_btn_conn.Click += new System.EventHandler(this.Evt_conn_click);
- //
- // el_btn_hw_test
- //
- this.el_btn_hw_test.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.el_btn_hw_test.BackColor = System.Drawing.SystemColors.Control;
- this.el_btn_hw_test.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.el_btn_hw_test.Cursor = System.Windows.Forms.Cursors.No;
- this.el_btn_hw_test.Enabled = false;
- this.el_btn_hw_test.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.el_btn_hw_test.Font = new System.Drawing.Font("宋体", 24F);
- this.el_btn_hw_test.ForeColor = System.Drawing.SystemColors.GrayText;
- this.el_btn_hw_test.Location = new System.Drawing.Point(105, 208);
- this.el_btn_hw_test.Margin = new System.Windows.Forms.Padding(2);
- this.el_btn_hw_test.Name = "el_btn_hw_test";
- this.el_btn_hw_test.Size = new System.Drawing.Size(270, 140);
- this.el_btn_hw_test.TabIndex = 1;
- this.el_btn_hw_test.Text = "硬件测试";
- this.el_btn_hw_test.UseVisualStyleBackColor = false;
- this.el_btn_hw_test.Click += new System.EventHandler(this.Evt_hw_click);
- //
- // el_btn_config
- //
- this.el_btn_config.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.el_btn_config.BackColor = System.Drawing.SystemColors.Control;
- this.el_btn_config.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.el_btn_config.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.el_btn_config.Font = new System.Drawing.Font("宋体", 24F);
- this.el_btn_config.ForeColor = System.Drawing.SystemColors.ButtonShadow;
- this.el_btn_config.Location = new System.Drawing.Point(586, 208);
- this.el_btn_config.Margin = new System.Windows.Forms.Padding(2);
- this.el_btn_config.Name = "el_btn_config";
- this.el_btn_config.Size = new System.Drawing.Size(270, 140);
- this.el_btn_config.TabIndex = 1;
- this.el_btn_config.Text = "出货配置";
- this.el_btn_config.UseVisualStyleBackColor = false;
- this.el_btn_config.Click += new System.EventHandler(this.Evt_conn_click);
- //
- // tableLayoutPanel
- //
- this.tableLayoutPanel.ColumnCount = 3;
- this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
- this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel.Controls.Add(this.el_btn_hw_test, 0, 1);
- this.tableLayoutPanel.Controls.Add(this.el_btn_config, 2, 1);
- this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
- this.tableLayoutPanel.Name = "tableLayoutPanel";
- this.tableLayoutPanel.RowCount = 3;
- this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
- this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel.Size = new System.Drawing.Size(962, 557);
- this.tableLayoutPanel.TabIndex = 2;
- //Console.WriteLine("TableLayoutPanel visible: " + tableLayoutPanel.Visible);
-
- // 添加新的WiFi输入控件
- this.lbl_ssid = new System.Windows.Forms.Label();
- this.txt_ssid = new System.Windows.Forms.TextBox();
- this.lbl_password = new System.Windows.Forms.Label();
- this.txt_password = new System.Windows.Forms.TextBox();
- this.panelWifi = new System.Windows.Forms.Panel();
- this.btn_connect_wifi = new System.Windows.Forms.Button();
- progressPanel = new ProgressPanel
- {
- Dock = DockStyle.Fill,
- Visible = false,
- TabIndex = 4
- };
- progressPanel.OnLogRequested += (s, ev) => ShowLogWindow();
- progressPanel.OnStopRequested += (s, ev) => StopTest();
- progressPanel.OnStartRequested += (s, ev) => start_query_test();
- progressPanel.OnReturnRequested += (s, ev) => re_main();
- progressPanel.StepList.OnStepButtonClick += setpStart;
- // 添加WiFi配置面板
- // panelWifi (单行布局)
- this.panelWifi.BackColor = System.Drawing.SystemColors.ControlLight;
- this.panelWifi.Controls.Add(this.lbl_ssid);
- this.panelWifi.Controls.Add(this.txt_ssid);
- this.panelWifi.Controls.Add(this.lbl_password);
- this.panelWifi.Controls.Add(this.txt_password);
- this.panelWifi.Controls.Add(this.btn_connect_wifi);
- this.panelWifi.Location = new System.Drawing.Point(360, 10); // 移到串口控件右侧
- this.panelWifi.Size = new System.Drawing.Size(550, 40); // 单行高度
- this.panelWifi.TabIndex = 3;
-
- // lbl_ssid
- this.lbl_ssid.AutoSize = true;
- this.lbl_ssid.Font = new System.Drawing.Font("宋体", 9F);
- this.lbl_ssid.Location = new System.Drawing.Point(5, 12);
- this.lbl_ssid.Name = "lbl_ssid";
- this.lbl_ssid.Size = new System.Drawing.Size(60, 12);
- this.lbl_ssid.TabIndex = 0;
- this.lbl_ssid.Text = "WiFi名称:";
-
- // txt_ssid
- this.txt_ssid.Font = new System.Drawing.Font("宋体", 9F);
- this.txt_ssid.Location = new System.Drawing.Point(65, 9);
- this.txt_ssid.Name = "txt_ssid";
- this.txt_ssid.Size = new System.Drawing.Size(120, 21);
- this.txt_ssid.TabIndex = 1;
- this.txt_ssid.Text = "hf_test";
-
- // lbl_password
- this.lbl_password.AutoSize = true;
- this.lbl_password.Font = new System.Drawing.Font("宋体", 9F);
- this.lbl_password.Location = new System.Drawing.Point(190, 12);
- this.lbl_password.Name = "lbl_password";
- this.lbl_password.Size = new System.Drawing.Size(60, 12);
- this.lbl_password.TabIndex = 2;
- this.lbl_password.Text = "WiFi密码:";
-
- // txt_password
- this.txt_password.Font = new System.Drawing.Font("宋体", 9F);
- this.txt_password.Location = new System.Drawing.Point(250, 9);
- this.txt_password.Name = "txt_password";
- this.txt_password.Size = new System.Drawing.Size(120, 21);
- this.txt_password.TabIndex = 3;
- this.txt_password.Text = "12345678";
-
- // btn_connect_wifi
- this.btn_connect_wifi.BackColor = System.Drawing.SystemColors.Control;
- this.btn_connect_wifi.Font = new System.Drawing.Font("宋体", 9F);
- this.btn_connect_wifi.Location = new System.Drawing.Point(380, 8);
- this.btn_connect_wifi.Name = "btn_connect_wifi";
- this.btn_connect_wifi.Size = new System.Drawing.Size(80, 24);
- this.btn_connect_wifi.TabIndex = 4;
- this.btn_connect_wifi.Text = "设置wifi";
- this.btn_connect_wifi.UseVisualStyleBackColor = false;
- this.btn_connect_wifi.Click += new System.EventHandler(this.Evt_set_wifi);
- // 调整串口控件位置
- this.el_serialList.Location = new System.Drawing.Point(13, 15);
- this.el_btn_refresh.Location = new System.Drawing.Point(197, 14);
- this.el_btn_conn.Location = new System.Drawing.Point(231, 14);
- this.topPanel.Controls.Add(this.el_serialList);
- this.topPanel.Controls.Add(this.el_btn_refresh);
- this.topPanel.Controls.Add(this.el_btn_conn);
- this.topPanel.Controls.Add(this.panelWifi);
- this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
- this.topPanel.Location = new System.Drawing.Point(0, 0);
- this.topPanel.Name = "topPanel";
- this.topPanel.Size = new System.Drawing.Size(962, 60); // 减小高度
- this.topPanel.TabIndex = 4;
- this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel.Location = new System.Drawing.Point(0, 60); // 从顶部面板下方开始
- this.tableLayoutPanel.Size = new System.Drawing.Size(962, 497); // 高度增加
- //
- // bird_tool
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(962, 557);
- this.Controls.Add(this.tableLayoutPanel);
- this.Controls.Add(progressPanel);
- this.Controls.Add(this.topPanel); // 添加顶部面板
- this.KeyPreview = true;
- this.Name = "bird_tool";
- this.Text = "观鸟器测试工具";
- this.Load += new System.EventHandler(this.Tool_load);
- this.tableLayoutPanel.ResumeLayout(false);
- this.ResumeLayout(false);
- }
- #endregion
- //private System.Windows.Forms.Timer _timeoutTimer;
- private System.Windows.Forms.Panel topPanel;
- private System.Windows.Forms.ComboBox el_serialList;
- private System.Windows.Forms.Button el_btn_refresh;
- private System.Windows.Forms.Button el_btn_conn;
- // 居中组件
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
- // 选择项目按钮
- private System.Windows.Forms.Button el_btn_hw_test;
- private System.Windows.Forms.Button el_btn_config;
-
- // 测试进度面板
- private ProgressPanel progressPanel;
- // wifi信息面板
- private System.Windows.Forms.Panel panelWifi;
- private System.Windows.Forms.Label lbl_ssid;
- private System.Windows.Forms.TextBox txt_ssid;
- private System.Windows.Forms.Label lbl_password;
- private System.Windows.Forms.TextBox txt_password;
- System.Windows.Forms.Button btn_connect_wifi;
- }
- }
|