diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs index 9609fd0..c959008 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -328,8 +328,8 @@ private void InitTableChannel() { - tableChannel.Columns.Clear(); - tableChannel.Rows.Clear(); + dataGridView_Channel.Columns.Clear(); + dataGridView_Channel.Rows.Clear(); // 添加标题栏 Panel tableHeader = new Panel @@ -339,7 +339,7 @@ Location = new Point(0, 0) }; tableHeader.BackColor = titleBackColor; - tableChannel.Controls.Add(tableHeader); + dataGridView_Channel.Controls.Add(tableHeader); // 通道号 Label colChannelNo = new Label @@ -353,7 +353,7 @@ Location = new Point(0, 0), Size = new Size(50, 30) }; - tableChannel.Controls.Add(colChannelNo); + dataGridView_Channel.Controls.Add(colChannelNo); colChannelNo.BringToFront(); // 仪器名称 @@ -368,7 +368,7 @@ Location = new Point(50, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevName); + dataGridView_Channel.Controls.Add(colDevName); colDevName.BringToFront(); // 仪器编号 @@ -383,7 +383,7 @@ Location = new Point(160, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevNo); + dataGridView_Channel.Controls.Add(colDevNo); colDevNo.BringToFront(); // 客户名称 @@ -398,7 +398,7 @@ Location = new Point(270, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colCustomName); + dataGridView_Channel.Controls.Add(colCustomName); colCustomName.BringToFront(); // 开始时间 @@ -413,7 +413,7 @@ Location = new Point(380, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colStartTime); + dataGridView_Channel.Controls.Add(colStartTime); colStartTime.BringToFront(); // 结束时间 @@ -428,7 +428,7 @@ Location = new Point(500, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colEndTime); + dataGridView_Channel.Controls.Add(colEndTime); colEndTime.BringToFront(); // 状态 @@ -443,9 +443,24 @@ Location = new Point(620, 0), Size = new Size(64, 30) }; - tableChannel.Controls.Add(colStatus); + dataGridView_Channel.Controls.Add(colStatus); colStatus.BringToFront(); + // 开机特性 + Label colStartup = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开机特性", + Location = new Point(824, 0), + Size = new Size(75, 30) + }; + dataGridView_Channel.Controls.Add(colStartup); + colStartup.BringToFront(); + // 频率稳定度 Label colStablility = new Label { @@ -458,7 +473,7 @@ Location = new Point(684, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colStablility); + dataGridView_Channel.Controls.Add(colStablility); colStablility.BringToFront(); // 频率准确度 @@ -473,23 +488,10 @@ Location = new Point(759, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAccuracy); + dataGridView_Channel.Controls.Add(colAccuracy); colAccuracy.BringToFront(); - // 开机特性 - Label colStartup = new Label - { - Font = titleFont, - ForeColor = Color.White, - TextAlign = ContentAlignment.MiddleCenter, - BackColor = titleBackColor, - AutoSize = false, - Text = "开机特性", - Location = new Point(824, 0), - Size = new Size(75, 30) - }; - tableChannel.Controls.Add(colStartup); - colStartup.BringToFront(); + // 日老化率 Label colAgingRate = new Label @@ -503,7 +505,7 @@ Location = new Point(899, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAgingRate); + dataGridView_Channel.Controls.Add(colAgingRate); colAgingRate.BringToFront(); } @@ -518,73 +520,62 @@ channelsTable.Columns.Add("startTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("endTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("channelStatus", Type.GetType("System.String")); + channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("stablility", Type.GetType("System.String")); channelsTable.Columns.Add("accuracy", Type.GetType("System.String")); - channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("agingRate", Type.GetType("System.String")); - channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.43); + channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); channelsTable.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); - channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); foreach (DataRow row in channelsTable.Rows) { //if() } - tableChannel.DataSource = channelsTable; - - - DataGridViewImageColumn Imange = new DataGridViewImageColumn(); - Imange.HeaderText = "iii"; - Imange.ValueType = typeof(Image); - //Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 + dataGridView_Channel.DataSource = channelsTable; - this.tableChannel.Columns.Add(Imange); - - //Imange = new DataGridViewImageColumn(); - //Imange.HeaderText = "iii2"; - ////Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - //Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 - //this.tableChannel.Columns.Add(Imange); - - //((DataGridViewImageCell)tableChannel.Rows[0].Cells[11]).Value = (Image)Properties.Resources.dot_green; - //((DataGridViewImageCell)tableChannel.Rows[1].Cells[11]).Value = (Image)Properties.Resources.dot_red; pic_accuracy_1.Image = (Image)Properties.Resources.dot_green; // width=764px - tableChannel.Columns[0].Width = 50; - tableChannel.Columns[1].Width = 110; - tableChannel.Columns[2].Width = 110; - tableChannel.Columns[3].Width = 110; - tableChannel.Columns[4].Width = 120; - tableChannel.Columns[5].Width = 120; - tableChannel.Columns[6].Width = 64; - tableChannel.Columns[7].Width = 75; - tableChannel.Columns[8].Width = 75; - tableChannel.Columns[9].Width = 75; - tableChannel.Columns[10].Width = 75; + dataGridView_Channel.Columns[0].Width = 50; + dataGridView_Channel.Columns[1].Width = 110; + dataGridView_Channel.Columns[2].Width = 110; + dataGridView_Channel.Columns[3].Width = 110; + dataGridView_Channel.Columns[4].Width = 120; + dataGridView_Channel.Columns[5].Width = 120; + dataGridView_Channel.Columns[6].Width = 64; + dataGridView_Channel.Columns[7].Width = 75; + dataGridView_Channel.Columns[8].Width = 75; + dataGridView_Channel.Columns[9].Width = 75; + dataGridView_Channel.Columns[10].Width = 75; - tableChannel.Columns[0].ReadOnly = true; - tableChannel.Columns[1].ReadOnly = true; - tableChannel.Columns[2].ReadOnly = true; - tableChannel.Columns[3].ReadOnly = true; - tableChannel.Columns[4].ReadOnly = true; - tableChannel.Columns[5].ReadOnly = true; - tableChannel.Columns[6].ReadOnly = true; - tableChannel.Columns[7].ReadOnly = true; - tableChannel.Columns[8].ReadOnly = true; - tableChannel.Columns[9].ReadOnly = true; - tableChannel.Columns[10].ReadOnly = true; + dataGridView_Channel.Columns[0].ReadOnly = true; + dataGridView_Channel.Columns[1].ReadOnly = true; + dataGridView_Channel.Columns[2].ReadOnly = true; + dataGridView_Channel.Columns[3].ReadOnly = true; + dataGridView_Channel.Columns[4].ReadOnly = true; + dataGridView_Channel.Columns[5].ReadOnly = true; + dataGridView_Channel.Columns[6].ReadOnly = true; + dataGridView_Channel.Columns[7].ReadOnly = true; + dataGridView_Channel.Columns[8].ReadOnly = true; + dataGridView_Channel.Columns[9].ReadOnly = true; + dataGridView_Channel.Columns[10].ReadOnly = true; } - + private void dataGridView_Channel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + dataGridView_Channel.Rows[2].DefaultCellStyle.BackColor = Color.FromArgb(232, 234, 238); + + } + + private void tableChannel_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = tableToBeTested.CurrentCell.RowIndex; @@ -806,5 +797,6 @@ } + } } diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs index 9609fd0..c959008 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -328,8 +328,8 @@ private void InitTableChannel() { - tableChannel.Columns.Clear(); - tableChannel.Rows.Clear(); + dataGridView_Channel.Columns.Clear(); + dataGridView_Channel.Rows.Clear(); // 添加标题栏 Panel tableHeader = new Panel @@ -339,7 +339,7 @@ Location = new Point(0, 0) }; tableHeader.BackColor = titleBackColor; - tableChannel.Controls.Add(tableHeader); + dataGridView_Channel.Controls.Add(tableHeader); // 通道号 Label colChannelNo = new Label @@ -353,7 +353,7 @@ Location = new Point(0, 0), Size = new Size(50, 30) }; - tableChannel.Controls.Add(colChannelNo); + dataGridView_Channel.Controls.Add(colChannelNo); colChannelNo.BringToFront(); // 仪器名称 @@ -368,7 +368,7 @@ Location = new Point(50, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevName); + dataGridView_Channel.Controls.Add(colDevName); colDevName.BringToFront(); // 仪器编号 @@ -383,7 +383,7 @@ Location = new Point(160, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevNo); + dataGridView_Channel.Controls.Add(colDevNo); colDevNo.BringToFront(); // 客户名称 @@ -398,7 +398,7 @@ Location = new Point(270, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colCustomName); + dataGridView_Channel.Controls.Add(colCustomName); colCustomName.BringToFront(); // 开始时间 @@ -413,7 +413,7 @@ Location = new Point(380, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colStartTime); + dataGridView_Channel.Controls.Add(colStartTime); colStartTime.BringToFront(); // 结束时间 @@ -428,7 +428,7 @@ Location = new Point(500, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colEndTime); + dataGridView_Channel.Controls.Add(colEndTime); colEndTime.BringToFront(); // 状态 @@ -443,9 +443,24 @@ Location = new Point(620, 0), Size = new Size(64, 30) }; - tableChannel.Controls.Add(colStatus); + dataGridView_Channel.Controls.Add(colStatus); colStatus.BringToFront(); + // 开机特性 + Label colStartup = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开机特性", + Location = new Point(824, 0), + Size = new Size(75, 30) + }; + dataGridView_Channel.Controls.Add(colStartup); + colStartup.BringToFront(); + // 频率稳定度 Label colStablility = new Label { @@ -458,7 +473,7 @@ Location = new Point(684, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colStablility); + dataGridView_Channel.Controls.Add(colStablility); colStablility.BringToFront(); // 频率准确度 @@ -473,23 +488,10 @@ Location = new Point(759, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAccuracy); + dataGridView_Channel.Controls.Add(colAccuracy); colAccuracy.BringToFront(); - // 开机特性 - Label colStartup = new Label - { - Font = titleFont, - ForeColor = Color.White, - TextAlign = ContentAlignment.MiddleCenter, - BackColor = titleBackColor, - AutoSize = false, - Text = "开机特性", - Location = new Point(824, 0), - Size = new Size(75, 30) - }; - tableChannel.Controls.Add(colStartup); - colStartup.BringToFront(); + // 日老化率 Label colAgingRate = new Label @@ -503,7 +505,7 @@ Location = new Point(899, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAgingRate); + dataGridView_Channel.Controls.Add(colAgingRate); colAgingRate.BringToFront(); } @@ -518,73 +520,62 @@ channelsTable.Columns.Add("startTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("endTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("channelStatus", Type.GetType("System.String")); + channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("stablility", Type.GetType("System.String")); channelsTable.Columns.Add("accuracy", Type.GetType("System.String")); - channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("agingRate", Type.GetType("System.String")); - channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.43); + channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); channelsTable.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); - channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); foreach (DataRow row in channelsTable.Rows) { //if() } - tableChannel.DataSource = channelsTable; - - - DataGridViewImageColumn Imange = new DataGridViewImageColumn(); - Imange.HeaderText = "iii"; - Imange.ValueType = typeof(Image); - //Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 + dataGridView_Channel.DataSource = channelsTable; - this.tableChannel.Columns.Add(Imange); - - //Imange = new DataGridViewImageColumn(); - //Imange.HeaderText = "iii2"; - ////Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - //Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 - //this.tableChannel.Columns.Add(Imange); - - //((DataGridViewImageCell)tableChannel.Rows[0].Cells[11]).Value = (Image)Properties.Resources.dot_green; - //((DataGridViewImageCell)tableChannel.Rows[1].Cells[11]).Value = (Image)Properties.Resources.dot_red; pic_accuracy_1.Image = (Image)Properties.Resources.dot_green; // width=764px - tableChannel.Columns[0].Width = 50; - tableChannel.Columns[1].Width = 110; - tableChannel.Columns[2].Width = 110; - tableChannel.Columns[3].Width = 110; - tableChannel.Columns[4].Width = 120; - tableChannel.Columns[5].Width = 120; - tableChannel.Columns[6].Width = 64; - tableChannel.Columns[7].Width = 75; - tableChannel.Columns[8].Width = 75; - tableChannel.Columns[9].Width = 75; - tableChannel.Columns[10].Width = 75; + dataGridView_Channel.Columns[0].Width = 50; + dataGridView_Channel.Columns[1].Width = 110; + dataGridView_Channel.Columns[2].Width = 110; + dataGridView_Channel.Columns[3].Width = 110; + dataGridView_Channel.Columns[4].Width = 120; + dataGridView_Channel.Columns[5].Width = 120; + dataGridView_Channel.Columns[6].Width = 64; + dataGridView_Channel.Columns[7].Width = 75; + dataGridView_Channel.Columns[8].Width = 75; + dataGridView_Channel.Columns[9].Width = 75; + dataGridView_Channel.Columns[10].Width = 75; - tableChannel.Columns[0].ReadOnly = true; - tableChannel.Columns[1].ReadOnly = true; - tableChannel.Columns[2].ReadOnly = true; - tableChannel.Columns[3].ReadOnly = true; - tableChannel.Columns[4].ReadOnly = true; - tableChannel.Columns[5].ReadOnly = true; - tableChannel.Columns[6].ReadOnly = true; - tableChannel.Columns[7].ReadOnly = true; - tableChannel.Columns[8].ReadOnly = true; - tableChannel.Columns[9].ReadOnly = true; - tableChannel.Columns[10].ReadOnly = true; + dataGridView_Channel.Columns[0].ReadOnly = true; + dataGridView_Channel.Columns[1].ReadOnly = true; + dataGridView_Channel.Columns[2].ReadOnly = true; + dataGridView_Channel.Columns[3].ReadOnly = true; + dataGridView_Channel.Columns[4].ReadOnly = true; + dataGridView_Channel.Columns[5].ReadOnly = true; + dataGridView_Channel.Columns[6].ReadOnly = true; + dataGridView_Channel.Columns[7].ReadOnly = true; + dataGridView_Channel.Columns[8].ReadOnly = true; + dataGridView_Channel.Columns[9].ReadOnly = true; + dataGridView_Channel.Columns[10].ReadOnly = true; } - + private void dataGridView_Channel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + dataGridView_Channel.Rows[2].DefaultCellStyle.BackColor = Color.FromArgb(232, 234, 238); + + } + + private void tableChannel_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = tableToBeTested.CurrentCell.RowIndex; @@ -806,5 +797,6 @@ } + } } diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs index f587d4c..eb543f0 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs @@ -696,6 +696,7 @@ this.btnSave.TabIndex = 9; this.btnSave.Text = "开始检测"; this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // SetDevChannelDlg // diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs index 9609fd0..c959008 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -328,8 +328,8 @@ private void InitTableChannel() { - tableChannel.Columns.Clear(); - tableChannel.Rows.Clear(); + dataGridView_Channel.Columns.Clear(); + dataGridView_Channel.Rows.Clear(); // 添加标题栏 Panel tableHeader = new Panel @@ -339,7 +339,7 @@ Location = new Point(0, 0) }; tableHeader.BackColor = titleBackColor; - tableChannel.Controls.Add(tableHeader); + dataGridView_Channel.Controls.Add(tableHeader); // 通道号 Label colChannelNo = new Label @@ -353,7 +353,7 @@ Location = new Point(0, 0), Size = new Size(50, 30) }; - tableChannel.Controls.Add(colChannelNo); + dataGridView_Channel.Controls.Add(colChannelNo); colChannelNo.BringToFront(); // 仪器名称 @@ -368,7 +368,7 @@ Location = new Point(50, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevName); + dataGridView_Channel.Controls.Add(colDevName); colDevName.BringToFront(); // 仪器编号 @@ -383,7 +383,7 @@ Location = new Point(160, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevNo); + dataGridView_Channel.Controls.Add(colDevNo); colDevNo.BringToFront(); // 客户名称 @@ -398,7 +398,7 @@ Location = new Point(270, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colCustomName); + dataGridView_Channel.Controls.Add(colCustomName); colCustomName.BringToFront(); // 开始时间 @@ -413,7 +413,7 @@ Location = new Point(380, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colStartTime); + dataGridView_Channel.Controls.Add(colStartTime); colStartTime.BringToFront(); // 结束时间 @@ -428,7 +428,7 @@ Location = new Point(500, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colEndTime); + dataGridView_Channel.Controls.Add(colEndTime); colEndTime.BringToFront(); // 状态 @@ -443,9 +443,24 @@ Location = new Point(620, 0), Size = new Size(64, 30) }; - tableChannel.Controls.Add(colStatus); + dataGridView_Channel.Controls.Add(colStatus); colStatus.BringToFront(); + // 开机特性 + Label colStartup = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开机特性", + Location = new Point(824, 0), + Size = new Size(75, 30) + }; + dataGridView_Channel.Controls.Add(colStartup); + colStartup.BringToFront(); + // 频率稳定度 Label colStablility = new Label { @@ -458,7 +473,7 @@ Location = new Point(684, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colStablility); + dataGridView_Channel.Controls.Add(colStablility); colStablility.BringToFront(); // 频率准确度 @@ -473,23 +488,10 @@ Location = new Point(759, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAccuracy); + dataGridView_Channel.Controls.Add(colAccuracy); colAccuracy.BringToFront(); - // 开机特性 - Label colStartup = new Label - { - Font = titleFont, - ForeColor = Color.White, - TextAlign = ContentAlignment.MiddleCenter, - BackColor = titleBackColor, - AutoSize = false, - Text = "开机特性", - Location = new Point(824, 0), - Size = new Size(75, 30) - }; - tableChannel.Controls.Add(colStartup); - colStartup.BringToFront(); + // 日老化率 Label colAgingRate = new Label @@ -503,7 +505,7 @@ Location = new Point(899, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAgingRate); + dataGridView_Channel.Controls.Add(colAgingRate); colAgingRate.BringToFront(); } @@ -518,73 +520,62 @@ channelsTable.Columns.Add("startTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("endTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("channelStatus", Type.GetType("System.String")); + channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("stablility", Type.GetType("System.String")); channelsTable.Columns.Add("accuracy", Type.GetType("System.String")); - channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("agingRate", Type.GetType("System.String")); - channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.43); + channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); channelsTable.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); - channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); foreach (DataRow row in channelsTable.Rows) { //if() } - tableChannel.DataSource = channelsTable; - - - DataGridViewImageColumn Imange = new DataGridViewImageColumn(); - Imange.HeaderText = "iii"; - Imange.ValueType = typeof(Image); - //Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 + dataGridView_Channel.DataSource = channelsTable; - this.tableChannel.Columns.Add(Imange); - - //Imange = new DataGridViewImageColumn(); - //Imange.HeaderText = "iii2"; - ////Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - //Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 - //this.tableChannel.Columns.Add(Imange); - - //((DataGridViewImageCell)tableChannel.Rows[0].Cells[11]).Value = (Image)Properties.Resources.dot_green; - //((DataGridViewImageCell)tableChannel.Rows[1].Cells[11]).Value = (Image)Properties.Resources.dot_red; pic_accuracy_1.Image = (Image)Properties.Resources.dot_green; // width=764px - tableChannel.Columns[0].Width = 50; - tableChannel.Columns[1].Width = 110; - tableChannel.Columns[2].Width = 110; - tableChannel.Columns[3].Width = 110; - tableChannel.Columns[4].Width = 120; - tableChannel.Columns[5].Width = 120; - tableChannel.Columns[6].Width = 64; - tableChannel.Columns[7].Width = 75; - tableChannel.Columns[8].Width = 75; - tableChannel.Columns[9].Width = 75; - tableChannel.Columns[10].Width = 75; + dataGridView_Channel.Columns[0].Width = 50; + dataGridView_Channel.Columns[1].Width = 110; + dataGridView_Channel.Columns[2].Width = 110; + dataGridView_Channel.Columns[3].Width = 110; + dataGridView_Channel.Columns[4].Width = 120; + dataGridView_Channel.Columns[5].Width = 120; + dataGridView_Channel.Columns[6].Width = 64; + dataGridView_Channel.Columns[7].Width = 75; + dataGridView_Channel.Columns[8].Width = 75; + dataGridView_Channel.Columns[9].Width = 75; + dataGridView_Channel.Columns[10].Width = 75; - tableChannel.Columns[0].ReadOnly = true; - tableChannel.Columns[1].ReadOnly = true; - tableChannel.Columns[2].ReadOnly = true; - tableChannel.Columns[3].ReadOnly = true; - tableChannel.Columns[4].ReadOnly = true; - tableChannel.Columns[5].ReadOnly = true; - tableChannel.Columns[6].ReadOnly = true; - tableChannel.Columns[7].ReadOnly = true; - tableChannel.Columns[8].ReadOnly = true; - tableChannel.Columns[9].ReadOnly = true; - tableChannel.Columns[10].ReadOnly = true; + dataGridView_Channel.Columns[0].ReadOnly = true; + dataGridView_Channel.Columns[1].ReadOnly = true; + dataGridView_Channel.Columns[2].ReadOnly = true; + dataGridView_Channel.Columns[3].ReadOnly = true; + dataGridView_Channel.Columns[4].ReadOnly = true; + dataGridView_Channel.Columns[5].ReadOnly = true; + dataGridView_Channel.Columns[6].ReadOnly = true; + dataGridView_Channel.Columns[7].ReadOnly = true; + dataGridView_Channel.Columns[8].ReadOnly = true; + dataGridView_Channel.Columns[9].ReadOnly = true; + dataGridView_Channel.Columns[10].ReadOnly = true; } - + private void dataGridView_Channel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + dataGridView_Channel.Rows[2].DefaultCellStyle.BackColor = Color.FromArgb(232, 234, 238); + + } + + private void tableChannel_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = tableToBeTested.CurrentCell.RowIndex; @@ -806,5 +797,6 @@ } + } } diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs index f587d4c..eb543f0 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs @@ -696,6 +696,7 @@ this.btnSave.TabIndex = 9; this.btnSave.Text = "开始检测"; this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // SetDevChannelDlg // diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.cs index 17703c2..910970c 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.cs @@ -51,5 +51,10 @@ groupBox3.Enabled = false; } } + + private void btnSave_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } } } diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs index 9609fd0..c959008 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -328,8 +328,8 @@ private void InitTableChannel() { - tableChannel.Columns.Clear(); - tableChannel.Rows.Clear(); + dataGridView_Channel.Columns.Clear(); + dataGridView_Channel.Rows.Clear(); // 添加标题栏 Panel tableHeader = new Panel @@ -339,7 +339,7 @@ Location = new Point(0, 0) }; tableHeader.BackColor = titleBackColor; - tableChannel.Controls.Add(tableHeader); + dataGridView_Channel.Controls.Add(tableHeader); // 通道号 Label colChannelNo = new Label @@ -353,7 +353,7 @@ Location = new Point(0, 0), Size = new Size(50, 30) }; - tableChannel.Controls.Add(colChannelNo); + dataGridView_Channel.Controls.Add(colChannelNo); colChannelNo.BringToFront(); // 仪器名称 @@ -368,7 +368,7 @@ Location = new Point(50, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevName); + dataGridView_Channel.Controls.Add(colDevName); colDevName.BringToFront(); // 仪器编号 @@ -383,7 +383,7 @@ Location = new Point(160, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevNo); + dataGridView_Channel.Controls.Add(colDevNo); colDevNo.BringToFront(); // 客户名称 @@ -398,7 +398,7 @@ Location = new Point(270, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colCustomName); + dataGridView_Channel.Controls.Add(colCustomName); colCustomName.BringToFront(); // 开始时间 @@ -413,7 +413,7 @@ Location = new Point(380, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colStartTime); + dataGridView_Channel.Controls.Add(colStartTime); colStartTime.BringToFront(); // 结束时间 @@ -428,7 +428,7 @@ Location = new Point(500, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colEndTime); + dataGridView_Channel.Controls.Add(colEndTime); colEndTime.BringToFront(); // 状态 @@ -443,9 +443,24 @@ Location = new Point(620, 0), Size = new Size(64, 30) }; - tableChannel.Controls.Add(colStatus); + dataGridView_Channel.Controls.Add(colStatus); colStatus.BringToFront(); + // 开机特性 + Label colStartup = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开机特性", + Location = new Point(824, 0), + Size = new Size(75, 30) + }; + dataGridView_Channel.Controls.Add(colStartup); + colStartup.BringToFront(); + // 频率稳定度 Label colStablility = new Label { @@ -458,7 +473,7 @@ Location = new Point(684, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colStablility); + dataGridView_Channel.Controls.Add(colStablility); colStablility.BringToFront(); // 频率准确度 @@ -473,23 +488,10 @@ Location = new Point(759, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAccuracy); + dataGridView_Channel.Controls.Add(colAccuracy); colAccuracy.BringToFront(); - // 开机特性 - Label colStartup = new Label - { - Font = titleFont, - ForeColor = Color.White, - TextAlign = ContentAlignment.MiddleCenter, - BackColor = titleBackColor, - AutoSize = false, - Text = "开机特性", - Location = new Point(824, 0), - Size = new Size(75, 30) - }; - tableChannel.Controls.Add(colStartup); - colStartup.BringToFront(); + // 日老化率 Label colAgingRate = new Label @@ -503,7 +505,7 @@ Location = new Point(899, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAgingRate); + dataGridView_Channel.Controls.Add(colAgingRate); colAgingRate.BringToFront(); } @@ -518,73 +520,62 @@ channelsTable.Columns.Add("startTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("endTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("channelStatus", Type.GetType("System.String")); + channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("stablility", Type.GetType("System.String")); channelsTable.Columns.Add("accuracy", Type.GetType("System.String")); - channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("agingRate", Type.GetType("System.String")); - channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.43); + channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); channelsTable.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); - channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); foreach (DataRow row in channelsTable.Rows) { //if() } - tableChannel.DataSource = channelsTable; - - - DataGridViewImageColumn Imange = new DataGridViewImageColumn(); - Imange.HeaderText = "iii"; - Imange.ValueType = typeof(Image); - //Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 + dataGridView_Channel.DataSource = channelsTable; - this.tableChannel.Columns.Add(Imange); - - //Imange = new DataGridViewImageColumn(); - //Imange.HeaderText = "iii2"; - ////Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - //Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 - //this.tableChannel.Columns.Add(Imange); - - //((DataGridViewImageCell)tableChannel.Rows[0].Cells[11]).Value = (Image)Properties.Resources.dot_green; - //((DataGridViewImageCell)tableChannel.Rows[1].Cells[11]).Value = (Image)Properties.Resources.dot_red; pic_accuracy_1.Image = (Image)Properties.Resources.dot_green; // width=764px - tableChannel.Columns[0].Width = 50; - tableChannel.Columns[1].Width = 110; - tableChannel.Columns[2].Width = 110; - tableChannel.Columns[3].Width = 110; - tableChannel.Columns[4].Width = 120; - tableChannel.Columns[5].Width = 120; - tableChannel.Columns[6].Width = 64; - tableChannel.Columns[7].Width = 75; - tableChannel.Columns[8].Width = 75; - tableChannel.Columns[9].Width = 75; - tableChannel.Columns[10].Width = 75; + dataGridView_Channel.Columns[0].Width = 50; + dataGridView_Channel.Columns[1].Width = 110; + dataGridView_Channel.Columns[2].Width = 110; + dataGridView_Channel.Columns[3].Width = 110; + dataGridView_Channel.Columns[4].Width = 120; + dataGridView_Channel.Columns[5].Width = 120; + dataGridView_Channel.Columns[6].Width = 64; + dataGridView_Channel.Columns[7].Width = 75; + dataGridView_Channel.Columns[8].Width = 75; + dataGridView_Channel.Columns[9].Width = 75; + dataGridView_Channel.Columns[10].Width = 75; - tableChannel.Columns[0].ReadOnly = true; - tableChannel.Columns[1].ReadOnly = true; - tableChannel.Columns[2].ReadOnly = true; - tableChannel.Columns[3].ReadOnly = true; - tableChannel.Columns[4].ReadOnly = true; - tableChannel.Columns[5].ReadOnly = true; - tableChannel.Columns[6].ReadOnly = true; - tableChannel.Columns[7].ReadOnly = true; - tableChannel.Columns[8].ReadOnly = true; - tableChannel.Columns[9].ReadOnly = true; - tableChannel.Columns[10].ReadOnly = true; + dataGridView_Channel.Columns[0].ReadOnly = true; + dataGridView_Channel.Columns[1].ReadOnly = true; + dataGridView_Channel.Columns[2].ReadOnly = true; + dataGridView_Channel.Columns[3].ReadOnly = true; + dataGridView_Channel.Columns[4].ReadOnly = true; + dataGridView_Channel.Columns[5].ReadOnly = true; + dataGridView_Channel.Columns[6].ReadOnly = true; + dataGridView_Channel.Columns[7].ReadOnly = true; + dataGridView_Channel.Columns[8].ReadOnly = true; + dataGridView_Channel.Columns[9].ReadOnly = true; + dataGridView_Channel.Columns[10].ReadOnly = true; } - + private void dataGridView_Channel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + dataGridView_Channel.Rows[2].DefaultCellStyle.BackColor = Color.FromArgb(232, 234, 238); + + } + + private void tableChannel_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = tableToBeTested.CurrentCell.RowIndex; @@ -806,5 +797,6 @@ } + } } diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs index f587d4c..eb543f0 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs @@ -696,6 +696,7 @@ this.btnSave.TabIndex = 9; this.btnSave.Text = "开始检测"; this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // SetDevChannelDlg // diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.cs index 17703c2..910970c 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.cs @@ -51,5 +51,10 @@ groupBox3.Enabled = false; } } + + private void btnSave_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } } } diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs index f4bba3d..8152f83 100644 --- a/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs @@ -29,8 +29,6 @@ /// private void InitializeComponent() { - this.btnCancel = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.textBoxX2 = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -38,57 +36,57 @@ this.label4 = new System.Windows.Forms.Label(); this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.button1 = new System.Windows.Forms.Button(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btnCancel = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label1 = new System.Windows.Forms.Label(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.textBoxX5 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label8 = new System.Windows.Forms.Label(); + this.textBoxX6 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label9 = new System.Windows.Forms.Label(); + this.textBoxX7 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label13 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.textBoxX9 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.textBoxX10 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.textBoxX11 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.label12 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.textBoxX8 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label20 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.textBoxX12 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.textBoxX13 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); this.SuspendLayout(); // - // btnCancel - // - this.btnCancel.EnterBackColor = System.Drawing.Color.Blue; - this.btnCancel.EnterForeColor = System.Drawing.Color.White; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.btnCancel.FlatAppearance.BorderSize = 0; - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnCancel.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.btnCancel.HoverForeColor = System.Drawing.Color.White; - this.btnCancel.Location = new System.Drawing.Point(367, 423); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.PressBackColor = System.Drawing.Color.DarkBlue; - this.btnCancel.PressForeColor = System.Drawing.Color.White; - this.btnCancel.Radius = 5; - this.btnCancel.Size = new System.Drawing.Size(150, 30); - this.btnCancel.TabIndex = 0; - this.btnCancel.Text = "放弃修改"; - this.btnCancel.UseVisualStyleBackColor = true; - // - // btnSave - // - this.btnSave.EnterBackColor = System.Drawing.Color.Blue; - this.btnSave.EnterForeColor = System.Drawing.Color.White; - this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.btnSave.FlatAppearance.BorderSize = 0; - this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198))))); - this.btnSave.HoverForeColor = System.Drawing.Color.White; - this.btnSave.Location = new System.Drawing.Point(557, 423); - this.btnSave.Name = "btnSave"; - this.btnSave.PressBackColor = System.Drawing.Color.DarkBlue; - this.btnSave.PressForeColor = System.Drawing.Color.White; - this.btnSave.Radius = 5; - this.btnSave.Size = new System.Drawing.Size(150, 30); - this.btnSave.TabIndex = 0; - this.btnSave.Text = "保存设置"; - this.btnSave.UseVisualStyleBackColor = true; - // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(300, 223); + this.label2.Location = new System.Drawing.Point(247, 177); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(150, 30); this.label2.TabIndex = 4; @@ -99,7 +97,7 @@ // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(300, 283); + this.label3.Location = new System.Drawing.Point(247, 237); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(150, 30); this.label3.TabIndex = 4; @@ -115,7 +113,7 @@ this.textBoxX2.Border.CornerDiameter = 5; this.textBoxX2.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX2.Location = new System.Drawing.Point(490, 223); + this.textBoxX2.Location = new System.Drawing.Point(437, 177); this.textBoxX2.Name = "textBoxX2"; this.textBoxX2.PreventEnterBeep = true; this.textBoxX2.Size = new System.Drawing.Size(250, 29); @@ -130,7 +128,7 @@ this.textBoxX3.Border.CornerDiameter = 5; this.textBoxX3.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX3.Location = new System.Drawing.Point(490, 283); + this.textBoxX3.Location = new System.Drawing.Point(437, 237); this.textBoxX3.Name = "textBoxX3"; this.textBoxX3.PreventEnterBeep = true; this.textBoxX3.Size = new System.Drawing.Size(250, 29); @@ -140,7 +138,7 @@ // this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(274, 167); + this.label4.Location = new System.Drawing.Point(221, 121); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(176, 30); this.label4.TabIndex = 4; @@ -156,7 +154,7 @@ this.textBoxX4.Border.CornerDiameter = 5; this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX4.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX4.Location = new System.Drawing.Point(490, 167); + this.textBoxX4.Location = new System.Drawing.Point(437, 121); this.textBoxX4.Name = "textBoxX4"; this.textBoxX4.PreventEnterBeep = true; this.textBoxX4.Size = new System.Drawing.Size(250, 29); @@ -168,12 +166,526 @@ this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(744, 167); + this.button1.Location = new System.Drawing.Point(691, 121); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(35, 28); this.button1.TabIndex = 7; this.button1.UseVisualStyleBackColor = false; // + // btnSave + // + this.btnSave.EnterBackColor = System.Drawing.Color.Blue; + this.btnSave.EnterForeColor = System.Drawing.Color.White; + this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btnSave.FlatAppearance.BorderSize = 0; + this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSave.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSave.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198))))); + this.btnSave.HoverForeColor = System.Drawing.Color.White; + this.btnSave.Location = new System.Drawing.Point(504, 377); + this.btnSave.Name = "btnSave"; + this.btnSave.PressBackColor = System.Drawing.Color.DarkBlue; + this.btnSave.PressForeColor = System.Drawing.Color.White; + this.btnSave.Radius = 5; + this.btnSave.Size = new System.Drawing.Size(150, 30); + this.btnSave.TabIndex = 0; + this.btnSave.Text = "保存设置"; + this.btnSave.UseVisualStyleBackColor = true; + // + // btnCancel + // + this.btnCancel.EnterBackColor = System.Drawing.Color.Blue; + this.btnCancel.EnterForeColor = System.Drawing.Color.White; + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btnCancel.FlatAppearance.BorderSize = 0; + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnCancel.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btnCancel.HoverForeColor = System.Drawing.Color.White; + this.btnCancel.Location = new System.Drawing.Point(314, 377); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.PressBackColor = System.Drawing.Color.DarkBlue; + this.btnCancel.PressForeColor = System.Drawing.Color.White; + this.btnCancel.Radius = 5; + this.btnCancel.Size = new System.Drawing.Size(150, 30); + this.btnCancel.TabIndex = 0; + this.btnCancel.Text = "放弃修改"; + this.btnCancel.UseVisualStyleBackColor = true; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.tabControl1.Location = new System.Drawing.Point(28, 27); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(972, 601); + this.tabControl1.TabIndex = 8; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.label4); + this.tabPage1.Controls.Add(this.button1); + this.tabPage1.Controls.Add(this.btnCancel); + this.tabPage1.Controls.Add(this.textBoxX3); + this.tabPage1.Controls.Add(this.btnSave); + this.tabPage1.Controls.Add(this.textBoxX2); + this.tabPage1.Controls.Add(this.textBoxX4); + this.tabPage1.Controls.Add(this.label3); + this.tabPage1.Controls.Add(this.label2); + this.tabPage1.Location = new System.Drawing.Point(4, 29); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(964, 568); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "系统参数"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.groupBox3); + this.tabPage2.Controls.Add(this.groupBox2); + this.tabPage2.Controls.Add(this.groupBox1); + this.tabPage2.Location = new System.Drawing.Point(4, 29); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(964, 568); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "计数器程控检定"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.textBoxX7); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.textBoxX6); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Controls.Add(this.textBoxX5); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.textBoxX1); + this.groupBox1.Location = new System.Drawing.Point(31, 18); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(904, 162); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "电平参数"; + // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(64, 45); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(125, 30); + this.label1.TabIndex = 6; + this.label1.Text = "信号源输出延时:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerDiameter = 5; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX1.Location = new System.Drawing.Point(195, 45); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.PreventEnterBeep = true; + this.textBoxX1.Size = new System.Drawing.Size(168, 29); + this.textBoxX1.TabIndex = 5; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(372, 43); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(45, 30); + this.label5.TabIndex = 7; + this.label5.Text = "ms"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label6 + // + this.label6.BackColor = System.Drawing.Color.Transparent; + this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label6.Location = new System.Drawing.Point(786, 39); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(45, 30); + this.label6.TabIndex = 10; + this.label6.Text = "V"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label7 + // + this.label7.BackColor = System.Drawing.Color.Transparent; + this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label7.Location = new System.Drawing.Point(444, 41); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(159, 30); + this.label7.TabIndex = 9; + this.label7.Text = "信号源初始电平:"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX5 + // + // + // + // + this.textBoxX5.Border.Class = "TextBoxBorder"; + this.textBoxX5.Border.CornerDiameter = 5; + this.textBoxX5.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX5.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX5.Location = new System.Drawing.Point(609, 41); + this.textBoxX5.Name = "textBoxX5"; + this.textBoxX5.PreventEnterBeep = true; + this.textBoxX5.Size = new System.Drawing.Size(168, 29); + this.textBoxX5.TabIndex = 8; + // + // label8 + // + this.label8.BackColor = System.Drawing.Color.Transparent; + this.label8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label8.Location = new System.Drawing.Point(30, 97); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(159, 30); + this.label8.TabIndex = 12; + this.label8.Text = "信号源电平增加值:"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX6 + // + // + // + // + this.textBoxX6.Border.Class = "TextBoxBorder"; + this.textBoxX6.Border.CornerDiameter = 5; + this.textBoxX6.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX6.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX6.Location = new System.Drawing.Point(195, 97); + this.textBoxX6.Name = "textBoxX6"; + this.textBoxX6.PreventEnterBeep = true; + this.textBoxX6.Size = new System.Drawing.Size(168, 29); + this.textBoxX6.TabIndex = 11; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(444, 97); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(159, 30); + this.label9.TabIndex = 14; + this.label9.Text = "输出电平警告值:"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX7 + // + // + // + // + this.textBoxX7.Border.Class = "TextBoxBorder"; + this.textBoxX7.Border.CornerDiameter = 5; + this.textBoxX7.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX7.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX7.Location = new System.Drawing.Point(609, 97); + this.textBoxX7.Name = "textBoxX7"; + this.textBoxX7.PreventEnterBeep = true; + this.textBoxX7.Size = new System.Drawing.Size(168, 29); + this.textBoxX7.TabIndex = 13; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(372, 97); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(45, 30); + this.label10.TabIndex = 15; + this.label10.Text = "V"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(786, 97); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(45, 30); + this.label11.TabIndex = 16; + this.label11.Text = "V"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.label13); + this.groupBox2.Controls.Add(this.label15); + this.groupBox2.Controls.Add(this.textBoxX9); + this.groupBox2.Controls.Add(this.label16); + this.groupBox2.Controls.Add(this.label17); + this.groupBox2.Controls.Add(this.textBoxX10); + this.groupBox2.Controls.Add(this.label18); + this.groupBox2.Controls.Add(this.label19); + this.groupBox2.Controls.Add(this.textBoxX11); + this.groupBox2.Location = new System.Drawing.Point(31, 194); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(904, 162); + this.groupBox2.TabIndex = 17; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "频率灵敏度"; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(372, 97); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(45, 30); + this.label13.TabIndex = 15; + this.label13.Text = "V"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label15 + // + this.label15.BackColor = System.Drawing.Color.Transparent; + this.label15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label15.Location = new System.Drawing.Point(30, 97); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(159, 30); + this.label15.TabIndex = 12; + this.label15.Text = "测量误差电平增加值:"; + this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX9 + // + // + // + // + this.textBoxX9.Border.Class = "TextBoxBorder"; + this.textBoxX9.Border.CornerDiameter = 5; + this.textBoxX9.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX9.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX9.Location = new System.Drawing.Point(195, 97); + this.textBoxX9.Name = "textBoxX9"; + this.textBoxX9.PreventEnterBeep = true; + this.textBoxX9.Size = new System.Drawing.Size(168, 29); + this.textBoxX9.TabIndex = 11; + // + // label16 + // + this.label16.BackColor = System.Drawing.Color.Transparent; + this.label16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label16.Location = new System.Drawing.Point(786, 39); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(45, 30); + this.label16.TabIndex = 10; + this.label16.Text = "V"; + this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label17 + // + this.label17.BackColor = System.Drawing.Color.Transparent; + this.label17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label17.Location = new System.Drawing.Point(444, 41); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(159, 30); + this.label17.TabIndex = 9; + this.label17.Text = "频率差值>80MHz:"; + this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX10 + // + // + // + // + this.textBoxX10.Border.Class = "TextBoxBorder"; + this.textBoxX10.Border.CornerDiameter = 5; + this.textBoxX10.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX10.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX10.Location = new System.Drawing.Point(609, 41); + this.textBoxX10.Name = "textBoxX10"; + this.textBoxX10.PreventEnterBeep = true; + this.textBoxX10.Size = new System.Drawing.Size(168, 29); + this.textBoxX10.TabIndex = 8; + // + // label18 + // + this.label18.BackColor = System.Drawing.Color.Transparent; + this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label18.Location = new System.Drawing.Point(372, 43); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(45, 30); + this.label18.TabIndex = 7; + this.label18.Text = "Hz"; + this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label19 + // + this.label19.BackColor = System.Drawing.Color.Transparent; + this.label19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label19.Location = new System.Drawing.Point(34, 45); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(155, 30); + this.label19.TabIndex = 6; + this.label19.Text = "频率差值<=80MHz:"; + this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX11 + // + // + // + // + this.textBoxX11.Border.Class = "TextBoxBorder"; + this.textBoxX11.Border.CornerDiameter = 5; + this.textBoxX11.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX11.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX11.Location = new System.Drawing.Point(195, 45); + this.textBoxX11.Name = "textBoxX11"; + this.textBoxX11.PreventEnterBeep = true; + this.textBoxX11.Size = new System.Drawing.Size(168, 29); + this.textBoxX11.TabIndex = 5; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.label12); + this.groupBox3.Controls.Add(this.label14); + this.groupBox3.Controls.Add(this.textBoxX8); + this.groupBox3.Controls.Add(this.label20); + this.groupBox3.Controls.Add(this.label21); + this.groupBox3.Controls.Add(this.textBoxX12); + this.groupBox3.Controls.Add(this.label22); + this.groupBox3.Controls.Add(this.label23); + this.groupBox3.Controls.Add(this.textBoxX13); + this.groupBox3.Location = new System.Drawing.Point(31, 373); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(904, 162); + this.groupBox3.TabIndex = 18; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "周期灵敏度"; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(372, 97); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(45, 30); + this.label12.TabIndex = 15; + this.label12.Text = "V"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label14 + // + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(30, 97); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(159, 30); + this.label14.TabIndex = 12; + this.label14.Text = "测量误差电平增加值:"; + this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX8 + // + // + // + // + this.textBoxX8.Border.Class = "TextBoxBorder"; + this.textBoxX8.Border.CornerDiameter = 5; + this.textBoxX8.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX8.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX8.Location = new System.Drawing.Point(195, 97); + this.textBoxX8.Name = "textBoxX8"; + this.textBoxX8.PreventEnterBeep = true; + this.textBoxX8.Size = new System.Drawing.Size(168, 29); + this.textBoxX8.TabIndex = 11; + // + // label20 + // + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label20.Location = new System.Drawing.Point(786, 39); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(45, 30); + this.label20.TabIndex = 10; + this.label20.Text = "倍"; + this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label21 + // + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label21.Location = new System.Drawing.Point(444, 41); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(159, 30); + this.label21.TabIndex = 9; + this.label21.Text = "周期差值>80MHz:"; + this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX12 + // + // + // + // + this.textBoxX12.Border.Class = "TextBoxBorder"; + this.textBoxX12.Border.CornerDiameter = 5; + this.textBoxX12.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX12.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX12.Location = new System.Drawing.Point(609, 41); + this.textBoxX12.Name = "textBoxX12"; + this.textBoxX12.PreventEnterBeep = true; + this.textBoxX12.Size = new System.Drawing.Size(168, 29); + this.textBoxX12.TabIndex = 8; + // + // label22 + // + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label22.Location = new System.Drawing.Point(372, 43); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(45, 30); + this.label22.TabIndex = 7; + this.label22.Text = "倍"; + this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label23 + // + this.label23.BackColor = System.Drawing.Color.Transparent; + this.label23.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label23.Location = new System.Drawing.Point(34, 45); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(155, 30); + this.label23.TabIndex = 6; + this.label23.Text = "周期差值<=80MHz:"; + this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX13 + // + // + // + // + this.textBoxX13.Border.Class = "TextBoxBorder"; + this.textBoxX13.Border.CornerDiameter = 5; + this.textBoxX13.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX13.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX13.Location = new System.Drawing.Point(195, 45); + this.textBoxX13.Name = "textBoxX13"; + this.textBoxX13.PreventEnterBeep = true; + this.textBoxX13.Size = new System.Drawing.Size(168, 29); + this.textBoxX13.TabIndex = 5; + // // SettingCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -181,19 +693,17 @@ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(238)))), ((int)(((byte)(242))))); this.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_white_shadow; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.Controls.Add(this.button1); - this.Controls.Add(this.textBoxX3); - this.Controls.Add(this.textBoxX2); - this.Controls.Add(this.label3); - this.Controls.Add(this.label2); - this.Controls.Add(this.label4); - this.Controls.Add(this.textBoxX4); - this.Controls.Add(this.btnSave); - this.Controls.Add(this.btnCancel); + this.Controls.Add(this.tabControl1); this.DoubleBuffered = true; this.Margin = new System.Windows.Forms.Padding(0); this.Name = "SettingCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); this.ResumeLayout(false); } @@ -209,5 +719,41 @@ private System.Windows.Forms.Label label4; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; private System.Windows.Forms.Button button1; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label14; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX8; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label21; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX12; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label23; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX13; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label15; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX9; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label17; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label19; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX11; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX7; + private System.Windows.Forms.Label label8; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX6; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX5; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; } } diff --git a/RbFreqStandMeasure/DataBackupDlg.Designer.cs b/RbFreqStandMeasure/DataBackupDlg.Designer.cs index 8b14644..337dfe3 100644 --- a/RbFreqStandMeasure/DataBackupDlg.Designer.cs +++ b/RbFreqStandMeasure/DataBackupDlg.Designer.cs @@ -34,10 +34,14 @@ this.panel1 = new System.Windows.Forms.Panel(); this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.labelX1 = new DevComponents.DotNetBar.LabelX(); - this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_save = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btn_cancle = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.button1 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnExit = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // rdDataBackup @@ -45,7 +49,8 @@ this.rdDataBackup.AutoSize = true; this.rdDataBackup.Checked = true; this.rdDataBackup.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataBackup.Location = new System.Drawing.Point(82, 16); + this.rdDataBackup.Location = new System.Drawing.Point(109, 16); + this.rdDataBackup.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataBackup.Name = "rdDataBackup"; this.rdDataBackup.Size = new System.Drawing.Size(83, 24); this.rdDataBackup.TabIndex = 0; @@ -57,21 +62,24 @@ // this.rdDataRecover.AutoSize = true; this.rdDataRecover.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.rdDataRecover.Location = new System.Drawing.Point(184, 16); + this.rdDataRecover.Location = new System.Drawing.Point(245, 16); + this.rdDataRecover.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rdDataRecover.Name = "rdDataRecover"; this.rdDataRecover.Size = new System.Drawing.Size(83, 24); this.rdDataRecover.TabIndex = 1; this.rdDataRecover.TabStop = true; this.rdDataRecover.Text = "数据还原"; this.rdDataRecover.UseVisualStyleBackColor = true; + this.rdDataRecover.CheckedChanged += new System.EventHandler(this.rdDataRecover_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.rdDataBackup); this.panel1.Controls.Add(this.rdDataRecover); - this.panel1.Location = new System.Drawing.Point(26, 27); + this.panel1.Location = new System.Drawing.Point(35, 40); + this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(362, 46); + this.panel1.Size = new System.Drawing.Size(483, 61); this.panel1.TabIndex = 6; // // textBoxX1 @@ -81,11 +89,12 @@ // this.textBoxX1.Border.Class = "TextBoxBorder"; this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.textBoxX1.Location = new System.Drawing.Point(27, 130); + this.textBoxX1.Location = new System.Drawing.Point(36, 160); + this.textBoxX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxX1.Multiline = true; this.textBoxX1.Name = "textBoxX1"; this.textBoxX1.PreventEnterBeep = true; - this.textBoxX1.Size = new System.Drawing.Size(298, 57); + this.textBoxX1.Size = new System.Drawing.Size(397, 95); this.textBoxX1.TabIndex = 1; // // labelX1 @@ -95,87 +104,134 @@ // this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.labelX1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelX1.Location = new System.Drawing.Point(26, 101); + this.labelX1.Location = new System.Drawing.Point(35, 120); + this.labelX1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.labelX1.Name = "labelX1"; - this.labelX1.Size = new System.Drawing.Size(199, 23); + this.labelX1.Size = new System.Drawing.Size(265, 38); this.labelX1.TabIndex = 0; this.labelX1.Text = "请选择备份文件存放路径:"; // - // roundButton3 + // btn_save // - this.roundButton3.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton3.EnterForeColor = System.Drawing.Color.White; - this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton3.FlatAppearance.BorderSize = 0; - this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton3.HoverForeColor = System.Drawing.Color.White; - this.roundButton3.Location = new System.Drawing.Point(91, 227); - this.roundButton3.Margin = new System.Windows.Forms.Padding(0); - this.roundButton3.Name = "roundButton3"; - this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton3.PressForeColor = System.Drawing.Color.White; - this.roundButton3.Radius = 5; - this.roundButton3.Size = new System.Drawing.Size(87, 26); - this.roundButton3.TabIndex = 15; - this.roundButton3.Text = "确定"; - this.roundButton3.UseVisualStyleBackColor = true; + this.btn_save.EnterBackColor = System.Drawing.Color.Blue; + this.btn_save.EnterForeColor = System.Drawing.Color.White; + this.btn_save.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_save.FlatAppearance.BorderSize = 0; + this.btn_save.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_save.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_save.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_save.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_save.HoverForeColor = System.Drawing.Color.White; + this.btn_save.Location = new System.Drawing.Point(111, 317); + this.btn_save.Margin = new System.Windows.Forms.Padding(0); + this.btn_save.Name = "btn_save"; + this.btn_save.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_save.PressForeColor = System.Drawing.Color.White; + this.btn_save.Radius = 5; + this.btn_save.Size = new System.Drawing.Size(116, 30); + this.btn_save.TabIndex = 15; + this.btn_save.Text = "确定"; + this.btn_save.UseVisualStyleBackColor = true; + this.btn_save.Click += new System.EventHandler(this.btn_save_Click); // - // roundButton1 + // btn_cancle // - this.roundButton1.EnterBackColor = System.Drawing.Color.Blue; - this.roundButton1.EnterForeColor = System.Drawing.Color.White; - this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.roundButton1.FlatAppearance.BorderSize = 0; - this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.roundButton1.HoverForeColor = System.Drawing.Color.White; - this.roundButton1.Location = new System.Drawing.Point(214, 227); - this.roundButton1.Margin = new System.Windows.Forms.Padding(0); - this.roundButton1.Name = "roundButton1"; - this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue; - this.roundButton1.PressForeColor = System.Drawing.Color.White; - this.roundButton1.Radius = 5; - this.roundButton1.Size = new System.Drawing.Size(87, 26); - this.roundButton1.TabIndex = 16; - this.roundButton1.Text = "取消"; - this.roundButton1.UseVisualStyleBackColor = true; + this.btn_cancle.EnterBackColor = System.Drawing.Color.Blue; + this.btn_cancle.EnterForeColor = System.Drawing.Color.White; + this.btn_cancle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btn_cancle.FlatAppearance.BorderSize = 0; + this.btn_cancle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btn_cancle.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_cancle.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.btn_cancle.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btn_cancle.HoverForeColor = System.Drawing.Color.White; + this.btn_cancle.Location = new System.Drawing.Point(275, 317); + this.btn_cancle.Margin = new System.Windows.Forms.Padding(0); + this.btn_cancle.Name = "btn_cancle"; + this.btn_cancle.PressBackColor = System.Drawing.Color.DarkBlue; + this.btn_cancle.PressForeColor = System.Drawing.Color.White; + this.btn_cancle.Radius = 5; + this.btn_cancle.Size = new System.Drawing.Size(116, 30); + this.btn_cancle.TabIndex = 16; + this.btn_cancle.Text = "取消"; + this.btn_cancle.UseVisualStyleBackColor = true; + this.btn_cancle.Click += new System.EventHandler(this.btn_cancle_Click); // // button1 // this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 159); + this.button1.Location = new System.Drawing.Point(441, 224); + this.button1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(35, 28); + this.button1.Size = new System.Drawing.Size(43, 31); this.button1.TabIndex = 17; this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.panel2.Controls.Add(this.btnExit); + this.panel2.Controls.Add(this.label3); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(533, 32); + this.panel2.TabIndex = 18; + // + // btnExit + // + this.btnExit.BackColor = System.Drawing.Color.Transparent; + this.btnExit.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_exit; + this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btnExit.FlatAppearance.BorderSize = 0; + this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnExit.ForeColor = System.Drawing.SystemColors.ControlDarkDark; + this.btnExit.Location = new System.Drawing.Point(498, 5); + this.btnExit.Margin = new System.Windows.Forms.Padding(0); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(20, 20); + this.btnExit.TabIndex = 2; + this.btnExit.UseVisualStyleBackColor = false; + this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + // + // label3 + // + this.label3.BackColor = System.Drawing.Color.Transparent; + this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(10, 5); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(155, 23); + this.label3.TabIndex = 0; + this.label3.Text = "数据管理"; // // DataBackupDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(400, 300); + this.ClientSize = new System.Drawing.Size(533, 394); this.ControlBox = false; + this.Controls.Add(this.panel2); this.Controls.Add(this.button1); - this.Controls.Add(this.roundButton1); - this.Controls.Add(this.roundButton3); + this.Controls.Add(this.btn_cancle); + this.Controls.Add(this.btn_save); this.Controls.Add(this.textBoxX1); this.Controls.Add(this.panel1); this.Controls.Add(this.labelX1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "DataBackupDlg"; this.Text = "数据管理"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -187,8 +243,11 @@ private System.Windows.Forms.Panel panel1; private DevComponents.DotNetBar.LabelX labelX1; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; - private RoundButton roundButton3; - private RoundButton roundButton1; + private RoundButton btn_save; + private RoundButton btn_cancle; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Label label3; } } \ No newline at end of file diff --git a/RbFreqStandMeasure/DataBackupDlg.cs b/RbFreqStandMeasure/DataBackupDlg.cs index ec6e45c..973dc0f 100644 --- a/RbFreqStandMeasure/DataBackupDlg.cs +++ b/RbFreqStandMeasure/DataBackupDlg.cs @@ -15,10 +15,74 @@ { InitializeComponent(); } + public Action HideMaskAction + { + get; + set; + } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } + + private void btnExit_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_cancle_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void btn_save_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } + + private void rdDataRecover_CheckedChanged(object sender, EventArgs e) + { + if (rdDataRecover.Checked) + { + labelX1.Text = "请选择文件进行还原:"; + } + else labelX1.Text = "请选择备份文件存放路径:"; + } + + private void button1_Click(object sender, EventArgs e) + { + // 备份 + if (rdDataBackup.Checked) + { + SaveFileDialog saveFileDialog = new SaveFileDialog(); + saveFileDialog.Title = "数据备份文件另存为"; + saveFileDialog.RestoreDirectory = true; + saveFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + saveFileDialog.FileName = DateTime.Now.ToString("yyyy-MM-dd");//设置默认文件名 + saveFileDialog.CheckPathExists = true;//检查目录 + + if (saveFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = saveFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + }        + } + // 备份 + else if (rdDataRecover.Checked) + { + OpenFileDialog openFileDialog = new OpenFileDialog(); + openFileDialog.Title = "请选择文件"; + openFileDialog.RestoreDirectory = true; + openFileDialog.Filter = "sql 数据库文件(*.sql)|*.sql"; + openFileDialog.CheckPathExists = true;//检查目录 + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + string strSaveFileLocation = openFileDialog.FileName;//文件路径 + textBoxX1.Text = strSaveFileLocation; + } + } + } } } diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index 1102dce..f3f4fef 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -234,8 +234,30 @@ // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); + dataDlg.HideMaskAction += () => + { + this.HideMask(); + }; + this.ShowMask(); + dataDlg.StartPosition = FormStartPosition.CenterParent; // 指定窗口弹出在父窗口的中间位置 dataDlg.ShowDialog(); } + + private MaskForm maskForm; + + private void ShowMask() + { + maskForm = new MaskForm(this.Location, this.Size); + maskForm.Show(); + } + + private void HideMask() + { + if (maskForm != null) + { + maskForm.Close(); + } + } #endregion #region 系统管理点击、移入/移出效果 @@ -399,7 +421,7 @@ private void panData_Click(object sender, EventArgs e) { if (menuSelected[4] == false) - { + { SelectData(); } } diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs index 391abde..bd37971 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -29,33 +29,33 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel5 = new System.Windows.Forms.Panel(); - this.pictureBox17 = new System.Windows.Forms.PictureBox(); - this.pictureBox18 = new System.Windows.Forms.PictureBox(); - this.pictureBox19 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_5 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_5 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_5 = new System.Windows.Forms.PictureBox(); this.pic_stability_5 = new System.Windows.Forms.PictureBox(); - this.pictureBox13 = new System.Windows.Forms.PictureBox(); - this.pictureBox14 = new System.Windows.Forms.PictureBox(); - this.pictureBox15 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_4 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_4 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_4 = new System.Windows.Forms.PictureBox(); this.pic_stability_4 = new System.Windows.Forms.PictureBox(); - this.pictureBox9 = new System.Windows.Forms.PictureBox(); - this.pictureBox10 = new System.Windows.Forms.PictureBox(); - this.pictureBox11 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_3 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_3 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_3 = new System.Windows.Forms.PictureBox(); this.pic_stability_3 = new System.Windows.Forms.PictureBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.pictureBox6 = new System.Windows.Forms.PictureBox(); - this.pictureBox7 = new System.Windows.Forms.PictureBox(); + this.pic_ageRate_2 = new System.Windows.Forms.PictureBox(); + this.pic_bootFeature_2 = new System.Windows.Forms.PictureBox(); + this.pic_accuracy_2 = new System.Windows.Forms.PictureBox(); this.pic_stability_2 = new System.Windows.Forms.PictureBox(); this.pic_ageRate_1 = new System.Windows.Forms.PictureBox(); this.pic_bootFeature_1 = new System.Windows.Forms.PictureBox(); this.pic_accuracy_1 = new System.Windows.Forms.PictureBox(); this.pic_stability_1 = new System.Windows.Forms.PictureBox(); - this.tableChannel = new System.Windows.Forms.DataGridView(); + this.dataGridView_Channel = new System.Windows.Forms.DataGridView(); this.panel4 = new System.Windows.Forms.Panel(); this.labelNodata = new System.Windows.Forms.Label(); this.btnNext = new System.Windows.Forms.Button(); @@ -64,33 +64,33 @@ this.label_pageInfo = new System.Windows.Forms.Label(); this.tableToBeTested = new System.Windows.Forms.DataGridView(); this.panelBase = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.label_clockStatus = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).BeginInit(); this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); this.panelBase.SuspendLayout(); @@ -98,187 +98,189 @@ // // panel5 // - this.panel5.Controls.Add(this.pictureBox17); - this.panel5.Controls.Add(this.pictureBox18); - this.panel5.Controls.Add(this.pictureBox19); + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_ct_list; + this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.panel5.Controls.Add(this.pic_ageRate_5); + this.panel5.Controls.Add(this.pic_bootFeature_5); + this.panel5.Controls.Add(this.pic_accuracy_5); this.panel5.Controls.Add(this.pic_stability_5); - this.panel5.Controls.Add(this.pictureBox13); - this.panel5.Controls.Add(this.pictureBox14); - this.panel5.Controls.Add(this.pictureBox15); + this.panel5.Controls.Add(this.pic_ageRate_4); + this.panel5.Controls.Add(this.pic_bootFeature_4); + this.panel5.Controls.Add(this.pic_accuracy_4); this.panel5.Controls.Add(this.pic_stability_4); - this.panel5.Controls.Add(this.pictureBox9); - this.panel5.Controls.Add(this.pictureBox10); - this.panel5.Controls.Add(this.pictureBox11); + this.panel5.Controls.Add(this.pic_ageRate_3); + this.panel5.Controls.Add(this.pic_bootFeature_3); + this.panel5.Controls.Add(this.pic_accuracy_3); this.panel5.Controls.Add(this.pic_stability_3); - this.panel5.Controls.Add(this.pictureBox5); - this.panel5.Controls.Add(this.pictureBox6); - this.panel5.Controls.Add(this.pictureBox7); + this.panel5.Controls.Add(this.pic_ageRate_2); + this.panel5.Controls.Add(this.pic_bootFeature_2); + this.panel5.Controls.Add(this.pic_accuracy_2); this.panel5.Controls.Add(this.pic_stability_2); this.panel5.Controls.Add(this.pic_ageRate_1); this.panel5.Controls.Add(this.pic_bootFeature_1); this.panel5.Controls.Add(this.pic_accuracy_1); this.panel5.Controls.Add(this.pic_stability_1); - this.panel5.Controls.Add(this.tableChannel); - this.panel5.Location = new System.Drawing.Point(10, 227); + this.panel5.Controls.Add(this.dataGridView_Channel); + this.panel5.Location = new System.Drawing.Point(6, 227); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1004, 420); + this.panel5.Size = new System.Drawing.Size(1011, 420); this.panel5.TabIndex = 4; // - // pictureBox17 + // pic_ageRate_5 // - this.pictureBox17.BackColor = System.Drawing.Color.Transparent; - this.pictureBox17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox17.Location = new System.Drawing.Point(940, 350); - this.pictureBox17.Name = "pictureBox17"; - this.pictureBox17.Size = new System.Drawing.Size(16, 16); - this.pictureBox17.TabIndex = 336; - this.pictureBox17.TabStop = false; + this.pic_ageRate_5.BackColor = System.Drawing.Color.White; + this.pic_ageRate_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_5.Location = new System.Drawing.Point(733, 350); + this.pic_ageRate_5.Name = "pic_ageRate_5"; + this.pic_ageRate_5.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_5.TabIndex = 336; + this.pic_ageRate_5.TabStop = false; // - // pictureBox18 + // pic_bootFeature_5 // - this.pictureBox18.BackColor = System.Drawing.Color.Transparent; - this.pictureBox18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox18.Location = new System.Drawing.Point(868, 350); - this.pictureBox18.Name = "pictureBox18"; - this.pictureBox18.Size = new System.Drawing.Size(16, 16); - this.pictureBox18.TabIndex = 335; - this.pictureBox18.TabStop = false; + this.pic_bootFeature_5.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_5.Location = new System.Drawing.Point(868, 350); + this.pic_bootFeature_5.Name = "pic_bootFeature_5"; + this.pic_bootFeature_5.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_5.TabIndex = 335; + this.pic_bootFeature_5.TabStop = false; // - // pictureBox19 + // pic_accuracy_5 // - this.pictureBox19.BackColor = System.Drawing.Color.Transparent; - this.pictureBox19.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox19.Location = new System.Drawing.Point(797, 350); - this.pictureBox19.Name = "pictureBox19"; - this.pictureBox19.Size = new System.Drawing.Size(16, 16); - this.pictureBox19.TabIndex = 334; - this.pictureBox19.TabStop = false; + this.pic_accuracy_5.BackColor = System.Drawing.Color.White; + this.pic_accuracy_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_5.Location = new System.Drawing.Point(797, 350); + this.pic_accuracy_5.Name = "pic_accuracy_5"; + this.pic_accuracy_5.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_5.TabIndex = 334; + this.pic_accuracy_5.TabStop = false; // // pic_stability_5 // - this.pic_stability_5.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_5.BackColor = System.Drawing.Color.White; this.pic_stability_5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_5.Location = new System.Drawing.Point(720, 350); + this.pic_stability_5.Location = new System.Drawing.Point(937, 350); this.pic_stability_5.Name = "pic_stability_5"; this.pic_stability_5.Size = new System.Drawing.Size(16, 16); this.pic_stability_5.TabIndex = 333; this.pic_stability_5.TabStop = false; // - // pictureBox13 + // pic_ageRate_4 // - this.pictureBox13.BackColor = System.Drawing.Color.Transparent; - this.pictureBox13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox13.Location = new System.Drawing.Point(940, 276); - this.pictureBox13.Name = "pictureBox13"; - this.pictureBox13.Size = new System.Drawing.Size(16, 16); - this.pictureBox13.TabIndex = 332; - this.pictureBox13.TabStop = false; + this.pic_ageRate_4.BackColor = System.Drawing.Color.White; + this.pic_ageRate_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_4.Location = new System.Drawing.Point(733, 276); + this.pic_ageRate_4.Name = "pic_ageRate_4"; + this.pic_ageRate_4.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_4.TabIndex = 332; + this.pic_ageRate_4.TabStop = false; // - // pictureBox14 + // pic_bootFeature_4 // - this.pictureBox14.BackColor = System.Drawing.Color.Transparent; - this.pictureBox14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox14.Location = new System.Drawing.Point(868, 276); - this.pictureBox14.Name = "pictureBox14"; - this.pictureBox14.Size = new System.Drawing.Size(16, 16); - this.pictureBox14.TabIndex = 331; - this.pictureBox14.TabStop = false; + this.pic_bootFeature_4.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_4.Location = new System.Drawing.Point(868, 276); + this.pic_bootFeature_4.Name = "pic_bootFeature_4"; + this.pic_bootFeature_4.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_4.TabIndex = 331; + this.pic_bootFeature_4.TabStop = false; // - // pictureBox15 + // pic_accuracy_4 // - this.pictureBox15.BackColor = System.Drawing.Color.Transparent; - this.pictureBox15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox15.Location = new System.Drawing.Point(797, 276); - this.pictureBox15.Name = "pictureBox15"; - this.pictureBox15.Size = new System.Drawing.Size(16, 16); - this.pictureBox15.TabIndex = 330; - this.pictureBox15.TabStop = false; + this.pic_accuracy_4.BackColor = System.Drawing.Color.White; + this.pic_accuracy_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_4.Location = new System.Drawing.Point(797, 276); + this.pic_accuracy_4.Name = "pic_accuracy_4"; + this.pic_accuracy_4.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_4.TabIndex = 330; + this.pic_accuracy_4.TabStop = false; // // pic_stability_4 // - this.pic_stability_4.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_4.BackColor = System.Drawing.Color.White; this.pic_stability_4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_4.Location = new System.Drawing.Point(720, 276); + this.pic_stability_4.Location = new System.Drawing.Point(937, 276); this.pic_stability_4.Name = "pic_stability_4"; this.pic_stability_4.Size = new System.Drawing.Size(16, 16); this.pic_stability_4.TabIndex = 329; this.pic_stability_4.TabStop = false; // - // pictureBox9 + // pic_ageRate_3 // - this.pictureBox9.BackColor = System.Drawing.Color.Transparent; - this.pictureBox9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox9.Location = new System.Drawing.Point(940, 198); - this.pictureBox9.Name = "pictureBox9"; - this.pictureBox9.Size = new System.Drawing.Size(16, 16); - this.pictureBox9.TabIndex = 328; - this.pictureBox9.TabStop = false; + this.pic_ageRate_3.BackColor = System.Drawing.Color.White; + this.pic_ageRate_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_3.Location = new System.Drawing.Point(733, 198); + this.pic_ageRate_3.Name = "pic_ageRate_3"; + this.pic_ageRate_3.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_3.TabIndex = 328; + this.pic_ageRate_3.TabStop = false; // - // pictureBox10 + // pic_bootFeature_3 // - this.pictureBox10.BackColor = System.Drawing.Color.Transparent; - this.pictureBox10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox10.Location = new System.Drawing.Point(868, 198); - this.pictureBox10.Name = "pictureBox10"; - this.pictureBox10.Size = new System.Drawing.Size(16, 16); - this.pictureBox10.TabIndex = 327; - this.pictureBox10.TabStop = false; + this.pic_bootFeature_3.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_3.Location = new System.Drawing.Point(868, 198); + this.pic_bootFeature_3.Name = "pic_bootFeature_3"; + this.pic_bootFeature_3.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_3.TabIndex = 327; + this.pic_bootFeature_3.TabStop = false; // - // pictureBox11 + // pic_accuracy_3 // - this.pictureBox11.BackColor = System.Drawing.Color.Transparent; - this.pictureBox11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox11.Location = new System.Drawing.Point(797, 198); - this.pictureBox11.Name = "pictureBox11"; - this.pictureBox11.Size = new System.Drawing.Size(16, 16); - this.pictureBox11.TabIndex = 326; - this.pictureBox11.TabStop = false; + this.pic_accuracy_3.BackColor = System.Drawing.Color.White; + this.pic_accuracy_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_3.Location = new System.Drawing.Point(797, 198); + this.pic_accuracy_3.Name = "pic_accuracy_3"; + this.pic_accuracy_3.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_3.TabIndex = 326; + this.pic_accuracy_3.TabStop = false; // // pic_stability_3 // - this.pic_stability_3.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_3.BackColor = System.Drawing.Color.White; this.pic_stability_3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_3.Location = new System.Drawing.Point(720, 198); + this.pic_stability_3.Location = new System.Drawing.Point(937, 198); this.pic_stability_3.Name = "pic_stability_3"; this.pic_stability_3.Size = new System.Drawing.Size(16, 16); this.pic_stability_3.TabIndex = 325; this.pic_stability_3.TabStop = false; // - // pictureBox5 + // pic_ageRate_2 // - this.pictureBox5.BackColor = System.Drawing.Color.Transparent; - this.pictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox5.Location = new System.Drawing.Point(940, 132); - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.Size = new System.Drawing.Size(16, 16); - this.pictureBox5.TabIndex = 324; - this.pictureBox5.TabStop = false; + this.pic_ageRate_2.BackColor = System.Drawing.Color.White; + this.pic_ageRate_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.pic_ageRate_2.Location = new System.Drawing.Point(733, 132); + this.pic_ageRate_2.Name = "pic_ageRate_2"; + this.pic_ageRate_2.Size = new System.Drawing.Size(16, 16); + this.pic_ageRate_2.TabIndex = 324; + this.pic_ageRate_2.TabStop = false; // - // pictureBox6 + // pic_bootFeature_2 // - this.pictureBox6.BackColor = System.Drawing.Color.Transparent; - this.pictureBox6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox6.Location = new System.Drawing.Point(868, 132); - this.pictureBox6.Name = "pictureBox6"; - this.pictureBox6.Size = new System.Drawing.Size(16, 16); - this.pictureBox6.TabIndex = 323; - this.pictureBox6.TabStop = false; + this.pic_bootFeature_2.BackColor = System.Drawing.Color.White; + this.pic_bootFeature_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_bootFeature_2.Location = new System.Drawing.Point(868, 132); + this.pic_bootFeature_2.Name = "pic_bootFeature_2"; + this.pic_bootFeature_2.Size = new System.Drawing.Size(16, 16); + this.pic_bootFeature_2.TabIndex = 323; + this.pic_bootFeature_2.TabStop = false; // - // pictureBox7 + // pic_accuracy_2 // - this.pictureBox7.BackColor = System.Drawing.Color.Transparent; - this.pictureBox7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox7.Location = new System.Drawing.Point(797, 132); - this.pictureBox7.Name = "pictureBox7"; - this.pictureBox7.Size = new System.Drawing.Size(16, 16); - this.pictureBox7.TabIndex = 322; - this.pictureBox7.TabStop = false; + this.pic_accuracy_2.BackColor = System.Drawing.Color.White; + this.pic_accuracy_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pic_accuracy_2.Location = new System.Drawing.Point(797, 132); + this.pic_accuracy_2.Name = "pic_accuracy_2"; + this.pic_accuracy_2.Size = new System.Drawing.Size(16, 16); + this.pic_accuracy_2.TabIndex = 322; + this.pic_accuracy_2.TabStop = false; // // pic_stability_2 // - this.pic_stability_2.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_2.BackColor = System.Drawing.Color.White; this.pic_stability_2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_2.Location = new System.Drawing.Point(720, 132); + this.pic_stability_2.Location = new System.Drawing.Point(937, 132); this.pic_stability_2.Name = "pic_stability_2"; this.pic_stability_2.Size = new System.Drawing.Size(16, 16); this.pic_stability_2.TabIndex = 321; @@ -286,9 +288,9 @@ // // pic_ageRate_1 // - this.pic_ageRate_1.BackColor = System.Drawing.Color.Transparent; + this.pic_ageRate_1.BackColor = System.Drawing.Color.White; this.pic_ageRate_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pic_ageRate_1.Location = new System.Drawing.Point(940, 66); + this.pic_ageRate_1.Location = new System.Drawing.Point(733, 66); this.pic_ageRate_1.Name = "pic_ageRate_1"; this.pic_ageRate_1.Size = new System.Drawing.Size(16, 16); this.pic_ageRate_1.TabIndex = 320; @@ -296,7 +298,7 @@ // // pic_bootFeature_1 // - this.pic_bootFeature_1.BackColor = System.Drawing.Color.Transparent; + this.pic_bootFeature_1.BackColor = System.Drawing.Color.White; this.pic_bootFeature_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_bootFeature_1.Location = new System.Drawing.Point(868, 66); this.pic_bootFeature_1.Name = "pic_bootFeature_1"; @@ -306,7 +308,7 @@ // // pic_accuracy_1 // - this.pic_accuracy_1.BackColor = System.Drawing.Color.Transparent; + this.pic_accuracy_1.BackColor = System.Drawing.Color.White; this.pic_accuracy_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pic_accuracy_1.Location = new System.Drawing.Point(797, 66); this.pic_accuracy_1.Name = "pic_accuracy_1"; @@ -316,58 +318,59 @@ // // pic_stability_1 // - this.pic_stability_1.BackColor = System.Drawing.Color.Transparent; + this.pic_stability_1.BackColor = System.Drawing.Color.White; this.pic_stability_1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pic_stability_1.Location = new System.Drawing.Point(720, 66); + this.pic_stability_1.Location = new System.Drawing.Point(937, 66); this.pic_stability_1.Name = "pic_stability_1"; this.pic_stability_1.Size = new System.Drawing.Size(16, 16); this.pic_stability_1.TabIndex = 317; this.pic_stability_1.TabStop = false; // - // tableChannel + // dataGridView_Channel // - this.tableChannel.AllowUserToAddRows = false; - this.tableChannel.AllowUserToDeleteRows = false; - this.tableChannel.AllowUserToResizeColumns = false; - this.tableChannel.AllowUserToResizeRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.tableChannel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; - this.tableChannel.BackgroundColor = System.Drawing.Color.White; - this.tableChannel.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tableChannel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - this.tableChannel.ColumnHeadersHeight = 30; - this.tableChannel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.tableChannel.DefaultCellStyle = dataGridViewCellStyle7; - this.tableChannel.Location = new System.Drawing.Point(10, 10); - this.tableChannel.Margin = new System.Windows.Forms.Padding(0); - this.tableChannel.MultiSelect = false; - this.tableChannel.Name = "tableChannel"; - this.tableChannel.RowHeadersVisible = false; - this.tableChannel.RowHeadersWidth = 30; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle8; - this.tableChannel.RowTemplate.Height = 74; - this.tableChannel.Size = new System.Drawing.Size(984, 400); - this.tableChannel.TabIndex = 0; - this.tableChannel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.AllowUserToAddRows = false; + this.dataGridView_Channel.AllowUserToDeleteRows = false; + this.dataGridView_Channel.AllowUserToResizeColumns = false; + this.dataGridView_Channel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView_Channel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView_Channel.BackgroundColor = System.Drawing.Color.White; + this.dataGridView_Channel.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.dataGridView_Channel.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.dataGridView_Channel.ColumnHeadersHeight = 30; + this.dataGridView_Channel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView_Channel.DefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView_Channel.Location = new System.Drawing.Point(15, 17); + this.dataGridView_Channel.Margin = new System.Windows.Forms.Padding(0); + this.dataGridView_Channel.MultiSelect = false; + this.dataGridView_Channel.Name = "dataGridView_Channel"; + this.dataGridView_Channel.RowHeadersVisible = false; + this.dataGridView_Channel.RowHeadersWidth = 30; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(203)))), ((int)(((byte)(208))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.dataGridView_Channel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView_Channel.RowTemplate.Height = 74; + this.dataGridView_Channel.Size = new System.Drawing.Size(974, 377); + this.dataGridView_Channel.TabIndex = 0; + this.dataGridView_Channel.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableChannel_CellDoubleClick); + this.dataGridView_Channel.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView_Channel_RowPostPaint); // // panel4 // @@ -450,13 +453,13 @@ this.tableToBeTested.AllowUserToDeleteRows = false; this.tableToBeTested.AllowUserToResizeColumns = false; this.tableToBeTested.AllowUserToResizeRows = false; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4; this.tableToBeTested.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.tableToBeTested.BackgroundColor = System.Drawing.Color.White; this.tableToBeTested.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -469,13 +472,13 @@ this.tableToBeTested.Name = "tableToBeTested"; this.tableToBeTested.RowHeadersVisible = false; this.tableToBeTested.RowHeadersWidth = 40; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.White; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); - this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.White; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableToBeTested.RowsDefaultCellStyle = dataGridViewCellStyle5; this.tableToBeTested.RowTemplate.DefaultCellStyle.NullValue = "-"; this.tableToBeTested.RowTemplate.Height = 32; this.tableToBeTested.Size = new System.Drawing.Size(764, 167); @@ -496,6 +499,30 @@ this.panelBase.Size = new System.Drawing.Size(220, 222); this.panelBase.TabIndex = 0; // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.Gray; + this.label1.Location = new System.Drawing.Point(95, 124); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.TabIndex = 3; + this.label1.Text = "定位有效"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(96, 69); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 2; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; @@ -530,30 +557,6 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label_clockStatus - // - this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; - this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label_clockStatus.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label_clockStatus.Location = new System.Drawing.Point(96, 69); - this.label_clockStatus.Name = "label_clockStatus"; - this.label_clockStatus.Size = new System.Drawing.Size(65, 25); - this.label_clockStatus.TabIndex = 2; - this.label_clockStatus.Text = "快锁"; - this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.ForeColor = System.Drawing.SystemColors.ControlDark; - this.label1.Location = new System.Drawing.Point(95, 124); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); - this.label1.TabIndex = 3; - this.label1.Text = "定位有效"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // HomeCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -567,27 +570,27 @@ this.Size = new System.Drawing.Size(1024, 654); this.Load += new System.EventHandler(this.HomeCtrlForm_Load); this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_ageRate_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_bootFeature_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_accuracy_1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pic_stability_1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Channel)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); @@ -609,27 +612,27 @@ private System.Windows.Forms.Button btnPre; private System.Windows.Forms.TextBox textBoxPage; private System.Windows.Forms.Button btnNext; - private System.Windows.Forms.DataGridView tableChannel; + private System.Windows.Forms.DataGridView dataGridView_Channel; private System.Windows.Forms.Label labelNodata; private System.Windows.Forms.PictureBox pic_accuracy_1; private System.Windows.Forms.PictureBox pic_ageRate_1; private System.Windows.Forms.PictureBox pic_bootFeature_1; private System.Windows.Forms.PictureBox pic_stability_1; - private System.Windows.Forms.PictureBox pictureBox17; - private System.Windows.Forms.PictureBox pictureBox18; - private System.Windows.Forms.PictureBox pictureBox19; + private System.Windows.Forms.PictureBox pic_ageRate_5; + private System.Windows.Forms.PictureBox pic_bootFeature_5; + private System.Windows.Forms.PictureBox pic_accuracy_5; private System.Windows.Forms.PictureBox pic_stability_5; - private System.Windows.Forms.PictureBox pictureBox13; - private System.Windows.Forms.PictureBox pictureBox14; - private System.Windows.Forms.PictureBox pictureBox15; + private System.Windows.Forms.PictureBox pic_ageRate_4; + private System.Windows.Forms.PictureBox pic_bootFeature_4; + private System.Windows.Forms.PictureBox pic_accuracy_4; private System.Windows.Forms.PictureBox pic_stability_4; - private System.Windows.Forms.PictureBox pictureBox9; - private System.Windows.Forms.PictureBox pictureBox10; - private System.Windows.Forms.PictureBox pictureBox11; + private System.Windows.Forms.PictureBox pic_ageRate_3; + private System.Windows.Forms.PictureBox pic_bootFeature_3; + private System.Windows.Forms.PictureBox pic_accuracy_3; private System.Windows.Forms.PictureBox pic_stability_3; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.PictureBox pictureBox6; - private System.Windows.Forms.PictureBox pictureBox7; + private System.Windows.Forms.PictureBox pic_ageRate_2; + private System.Windows.Forms.PictureBox pic_bootFeature_2; + private System.Windows.Forms.PictureBox pic_accuracy_2; private System.Windows.Forms.PictureBox pic_stability_2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label_clockStatus; diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs index 9609fd0..c959008 100644 --- a/RbFreqStandMeasure/home/HomeCtrlForm.cs +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -328,8 +328,8 @@ private void InitTableChannel() { - tableChannel.Columns.Clear(); - tableChannel.Rows.Clear(); + dataGridView_Channel.Columns.Clear(); + dataGridView_Channel.Rows.Clear(); // 添加标题栏 Panel tableHeader = new Panel @@ -339,7 +339,7 @@ Location = new Point(0, 0) }; tableHeader.BackColor = titleBackColor; - tableChannel.Controls.Add(tableHeader); + dataGridView_Channel.Controls.Add(tableHeader); // 通道号 Label colChannelNo = new Label @@ -353,7 +353,7 @@ Location = new Point(0, 0), Size = new Size(50, 30) }; - tableChannel.Controls.Add(colChannelNo); + dataGridView_Channel.Controls.Add(colChannelNo); colChannelNo.BringToFront(); // 仪器名称 @@ -368,7 +368,7 @@ Location = new Point(50, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevName); + dataGridView_Channel.Controls.Add(colDevName); colDevName.BringToFront(); // 仪器编号 @@ -383,7 +383,7 @@ Location = new Point(160, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colDevNo); + dataGridView_Channel.Controls.Add(colDevNo); colDevNo.BringToFront(); // 客户名称 @@ -398,7 +398,7 @@ Location = new Point(270, 0), Size = new Size(110, 30) }; - tableChannel.Controls.Add(colCustomName); + dataGridView_Channel.Controls.Add(colCustomName); colCustomName.BringToFront(); // 开始时间 @@ -413,7 +413,7 @@ Location = new Point(380, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colStartTime); + dataGridView_Channel.Controls.Add(colStartTime); colStartTime.BringToFront(); // 结束时间 @@ -428,7 +428,7 @@ Location = new Point(500, 0), Size = new Size(120, 30) }; - tableChannel.Controls.Add(colEndTime); + dataGridView_Channel.Controls.Add(colEndTime); colEndTime.BringToFront(); // 状态 @@ -443,9 +443,24 @@ Location = new Point(620, 0), Size = new Size(64, 30) }; - tableChannel.Controls.Add(colStatus); + dataGridView_Channel.Controls.Add(colStatus); colStatus.BringToFront(); + // 开机特性 + Label colStartup = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开机特性", + Location = new Point(824, 0), + Size = new Size(75, 30) + }; + dataGridView_Channel.Controls.Add(colStartup); + colStartup.BringToFront(); + // 频率稳定度 Label colStablility = new Label { @@ -458,7 +473,7 @@ Location = new Point(684, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colStablility); + dataGridView_Channel.Controls.Add(colStablility); colStablility.BringToFront(); // 频率准确度 @@ -473,23 +488,10 @@ Location = new Point(759, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAccuracy); + dataGridView_Channel.Controls.Add(colAccuracy); colAccuracy.BringToFront(); - // 开机特性 - Label colStartup = new Label - { - Font = titleFont, - ForeColor = Color.White, - TextAlign = ContentAlignment.MiddleCenter, - BackColor = titleBackColor, - AutoSize = false, - Text = "开机特性", - Location = new Point(824, 0), - Size = new Size(75, 30) - }; - tableChannel.Controls.Add(colStartup); - colStartup.BringToFront(); + // 日老化率 Label colAgingRate = new Label @@ -503,7 +505,7 @@ Location = new Point(899, 0), Size = new Size(75, 30) }; - tableChannel.Controls.Add(colAgingRate); + dataGridView_Channel.Controls.Add(colAgingRate); colAgingRate.BringToFront(); } @@ -518,73 +520,62 @@ channelsTable.Columns.Add("startTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("endTime", Type.GetType("System.DateTime")); channelsTable.Columns.Add("channelStatus", Type.GetType("System.String")); + channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("stablility", Type.GetType("System.String")); channelsTable.Columns.Add("accuracy", Type.GetType("System.String")); - channelsTable.Columns.Add("startup", Type.GetType("System.String")); channelsTable.Columns.Add("agingRate", Type.GetType("System.String")); - channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.43); + channelsTable.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); channelsTable.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); - channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); - channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channelsTable.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); + channelsTable.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", "", "", "", ""); foreach (DataRow row in channelsTable.Rows) { //if() } - tableChannel.DataSource = channelsTable; - - - DataGridViewImageColumn Imange = new DataGridViewImageColumn(); - Imange.HeaderText = "iii"; - Imange.ValueType = typeof(Image); - //Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 + dataGridView_Channel.DataSource = channelsTable; - this.tableChannel.Columns.Add(Imange); - - //Imange = new DataGridViewImageColumn(); - //Imange.HeaderText = "iii2"; - ////Imange.Image = Properties.Resources.dot_green;//把PictureBox上的图片赋值给图像列 - //Imange.ImageLayout = DataGridViewImageCellLayout.Normal;//设置“照片”列的图像制定布局设定为缩略图 - //this.tableChannel.Columns.Add(Imange); - - //((DataGridViewImageCell)tableChannel.Rows[0].Cells[11]).Value = (Image)Properties.Resources.dot_green; - //((DataGridViewImageCell)tableChannel.Rows[1].Cells[11]).Value = (Image)Properties.Resources.dot_red; pic_accuracy_1.Image = (Image)Properties.Resources.dot_green; // width=764px - tableChannel.Columns[0].Width = 50; - tableChannel.Columns[1].Width = 110; - tableChannel.Columns[2].Width = 110; - tableChannel.Columns[3].Width = 110; - tableChannel.Columns[4].Width = 120; - tableChannel.Columns[5].Width = 120; - tableChannel.Columns[6].Width = 64; - tableChannel.Columns[7].Width = 75; - tableChannel.Columns[8].Width = 75; - tableChannel.Columns[9].Width = 75; - tableChannel.Columns[10].Width = 75; + dataGridView_Channel.Columns[0].Width = 50; + dataGridView_Channel.Columns[1].Width = 110; + dataGridView_Channel.Columns[2].Width = 110; + dataGridView_Channel.Columns[3].Width = 110; + dataGridView_Channel.Columns[4].Width = 120; + dataGridView_Channel.Columns[5].Width = 120; + dataGridView_Channel.Columns[6].Width = 64; + dataGridView_Channel.Columns[7].Width = 75; + dataGridView_Channel.Columns[8].Width = 75; + dataGridView_Channel.Columns[9].Width = 75; + dataGridView_Channel.Columns[10].Width = 75; - tableChannel.Columns[0].ReadOnly = true; - tableChannel.Columns[1].ReadOnly = true; - tableChannel.Columns[2].ReadOnly = true; - tableChannel.Columns[3].ReadOnly = true; - tableChannel.Columns[4].ReadOnly = true; - tableChannel.Columns[5].ReadOnly = true; - tableChannel.Columns[6].ReadOnly = true; - tableChannel.Columns[7].ReadOnly = true; - tableChannel.Columns[8].ReadOnly = true; - tableChannel.Columns[9].ReadOnly = true; - tableChannel.Columns[10].ReadOnly = true; + dataGridView_Channel.Columns[0].ReadOnly = true; + dataGridView_Channel.Columns[1].ReadOnly = true; + dataGridView_Channel.Columns[2].ReadOnly = true; + dataGridView_Channel.Columns[3].ReadOnly = true; + dataGridView_Channel.Columns[4].ReadOnly = true; + dataGridView_Channel.Columns[5].ReadOnly = true; + dataGridView_Channel.Columns[6].ReadOnly = true; + dataGridView_Channel.Columns[7].ReadOnly = true; + dataGridView_Channel.Columns[8].ReadOnly = true; + dataGridView_Channel.Columns[9].ReadOnly = true; + dataGridView_Channel.Columns[10].ReadOnly = true; } - + private void dataGridView_Channel_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + dataGridView_Channel.Rows[2].DefaultCellStyle.BackColor = Color.FromArgb(232, 234, 238); + + } + + private void tableChannel_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = tableToBeTested.CurrentCell.RowIndex; @@ -806,5 +797,6 @@ } + } } diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs index f587d4c..eb543f0 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.Designer.cs @@ -696,6 +696,7 @@ this.btnSave.TabIndex = 9; this.btnSave.Text = "开始检测"; this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // SetDevChannelDlg // diff --git a/RbFreqStandMeasure/home/SetDevChannelDlg.cs b/RbFreqStandMeasure/home/SetDevChannelDlg.cs index 17703c2..910970c 100644 --- a/RbFreqStandMeasure/home/SetDevChannelDlg.cs +++ b/RbFreqStandMeasure/home/SetDevChannelDlg.cs @@ -51,5 +51,10 @@ groupBox3.Enabled = false; } } + + private void btnSave_Click(object sender, EventArgs e) + { + this.HideMaskAction(); + } } } diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs index f4bba3d..8152f83 100644 --- a/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs @@ -29,8 +29,6 @@ /// private void InitializeComponent() { - this.btnCancel = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); - this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.textBoxX2 = new DevComponents.DotNetBar.Controls.TextBoxX(); @@ -38,57 +36,57 @@ this.label4 = new System.Windows.Forms.Label(); this.textBoxX4 = new DevComponents.DotNetBar.Controls.TextBoxX(); this.button1 = new System.Windows.Forms.Button(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.btnCancel = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label1 = new System.Windows.Forms.Label(); + this.textBoxX1 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.textBoxX5 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label8 = new System.Windows.Forms.Label(); + this.textBoxX6 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label9 = new System.Windows.Forms.Label(); + this.textBoxX7 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label13 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.textBoxX9 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.textBoxX10 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.textBoxX11 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.label12 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.textBoxX8 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label20 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.textBoxX12 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.label22 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.textBoxX13 = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); this.SuspendLayout(); // - // btnCancel - // - this.btnCancel.EnterBackColor = System.Drawing.Color.Blue; - this.btnCancel.EnterForeColor = System.Drawing.Color.White; - this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.btnCancel.FlatAppearance.BorderSize = 0; - this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnCancel.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); - this.btnCancel.HoverForeColor = System.Drawing.Color.White; - this.btnCancel.Location = new System.Drawing.Point(367, 423); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.PressBackColor = System.Drawing.Color.DarkBlue; - this.btnCancel.PressForeColor = System.Drawing.Color.White; - this.btnCancel.Radius = 5; - this.btnCancel.Size = new System.Drawing.Size(150, 30); - this.btnCancel.TabIndex = 0; - this.btnCancel.Text = "放弃修改"; - this.btnCancel.UseVisualStyleBackColor = true; - // - // btnSave - // - this.btnSave.EnterBackColor = System.Drawing.Color.Blue; - this.btnSave.EnterForeColor = System.Drawing.Color.White; - this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.btnSave.FlatAppearance.BorderSize = 0; - this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; - this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; - this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnSave.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnSave.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198))))); - this.btnSave.HoverForeColor = System.Drawing.Color.White; - this.btnSave.Location = new System.Drawing.Point(557, 423); - this.btnSave.Name = "btnSave"; - this.btnSave.PressBackColor = System.Drawing.Color.DarkBlue; - this.btnSave.PressForeColor = System.Drawing.Color.White; - this.btnSave.Radius = 5; - this.btnSave.Size = new System.Drawing.Size(150, 30); - this.btnSave.TabIndex = 0; - this.btnSave.Text = "保存设置"; - this.btnSave.UseVisualStyleBackColor = true; - // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(300, 223); + this.label2.Location = new System.Drawing.Point(247, 177); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(150, 30); this.label2.TabIndex = 4; @@ -99,7 +97,7 @@ // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(300, 283); + this.label3.Location = new System.Drawing.Point(247, 237); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(150, 30); this.label3.TabIndex = 4; @@ -115,7 +113,7 @@ this.textBoxX2.Border.CornerDiameter = 5; this.textBoxX2.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX2.Location = new System.Drawing.Point(490, 223); + this.textBoxX2.Location = new System.Drawing.Point(437, 177); this.textBoxX2.Name = "textBoxX2"; this.textBoxX2.PreventEnterBeep = true; this.textBoxX2.Size = new System.Drawing.Size(250, 29); @@ -130,7 +128,7 @@ this.textBoxX3.Border.CornerDiameter = 5; this.textBoxX3.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX3.Location = new System.Drawing.Point(490, 283); + this.textBoxX3.Location = new System.Drawing.Point(437, 237); this.textBoxX3.Name = "textBoxX3"; this.textBoxX3.PreventEnterBeep = true; this.textBoxX3.Size = new System.Drawing.Size(250, 29); @@ -140,7 +138,7 @@ // this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(274, 167); + this.label4.Location = new System.Drawing.Point(221, 121); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(176, 30); this.label4.TabIndex = 4; @@ -156,7 +154,7 @@ this.textBoxX4.Border.CornerDiameter = 5; this.textBoxX4.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; this.textBoxX4.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.textBoxX4.Location = new System.Drawing.Point(490, 167); + this.textBoxX4.Location = new System.Drawing.Point(437, 121); this.textBoxX4.Name = "textBoxX4"; this.textBoxX4.PreventEnterBeep = true; this.textBoxX4.Size = new System.Drawing.Size(250, 29); @@ -168,12 +166,526 @@ this.button1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.path; this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(744, 167); + this.button1.Location = new System.Drawing.Point(691, 121); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(35, 28); this.button1.TabIndex = 7; this.button1.UseVisualStyleBackColor = false; // + // btnSave + // + this.btnSave.EnterBackColor = System.Drawing.Color.Blue; + this.btnSave.EnterForeColor = System.Drawing.Color.White; + this.btnSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btnSave.FlatAppearance.BorderSize = 0; + this.btnSave.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btnSave.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSave.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnSave.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198))))); + this.btnSave.HoverForeColor = System.Drawing.Color.White; + this.btnSave.Location = new System.Drawing.Point(504, 377); + this.btnSave.Name = "btnSave"; + this.btnSave.PressBackColor = System.Drawing.Color.DarkBlue; + this.btnSave.PressForeColor = System.Drawing.Color.White; + this.btnSave.Radius = 5; + this.btnSave.Size = new System.Drawing.Size(150, 30); + this.btnSave.TabIndex = 0; + this.btnSave.Text = "保存设置"; + this.btnSave.UseVisualStyleBackColor = true; + // + // btnCancel + // + this.btnCancel.EnterBackColor = System.Drawing.Color.Blue; + this.btnCancel.EnterForeColor = System.Drawing.Color.White; + this.btnCancel.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.btnCancel.FlatAppearance.BorderSize = 0; + this.btnCancel.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; + this.btnCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; + this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnCancel.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242))))); + this.btnCancel.HoverForeColor = System.Drawing.Color.White; + this.btnCancel.Location = new System.Drawing.Point(314, 377); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.PressBackColor = System.Drawing.Color.DarkBlue; + this.btnCancel.PressForeColor = System.Drawing.Color.White; + this.btnCancel.Radius = 5; + this.btnCancel.Size = new System.Drawing.Size(150, 30); + this.btnCancel.TabIndex = 0; + this.btnCancel.Text = "放弃修改"; + this.btnCancel.UseVisualStyleBackColor = true; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.tabControl1.Location = new System.Drawing.Point(28, 27); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(972, 601); + this.tabControl1.TabIndex = 8; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.label4); + this.tabPage1.Controls.Add(this.button1); + this.tabPage1.Controls.Add(this.btnCancel); + this.tabPage1.Controls.Add(this.textBoxX3); + this.tabPage1.Controls.Add(this.btnSave); + this.tabPage1.Controls.Add(this.textBoxX2); + this.tabPage1.Controls.Add(this.textBoxX4); + this.tabPage1.Controls.Add(this.label3); + this.tabPage1.Controls.Add(this.label2); + this.tabPage1.Location = new System.Drawing.Point(4, 29); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(964, 568); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "系统参数"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.groupBox3); + this.tabPage2.Controls.Add(this.groupBox2); + this.tabPage2.Controls.Add(this.groupBox1); + this.tabPage2.Location = new System.Drawing.Point(4, 29); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(964, 568); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "计数器程控检定"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.textBoxX7); + this.groupBox1.Controls.Add(this.label8); + this.groupBox1.Controls.Add(this.textBoxX6); + this.groupBox1.Controls.Add(this.label6); + this.groupBox1.Controls.Add(this.label7); + this.groupBox1.Controls.Add(this.textBoxX5); + this.groupBox1.Controls.Add(this.label5); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.textBoxX1); + this.groupBox1.Location = new System.Drawing.Point(31, 18); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(904, 162); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "电平参数"; + // + // label1 + // + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(64, 45); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(125, 30); + this.label1.TabIndex = 6; + this.label1.Text = "信号源输出延时:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX1 + // + // + // + // + this.textBoxX1.Border.Class = "TextBoxBorder"; + this.textBoxX1.Border.CornerDiameter = 5; + this.textBoxX1.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX1.Location = new System.Drawing.Point(195, 45); + this.textBoxX1.Name = "textBoxX1"; + this.textBoxX1.PreventEnterBeep = true; + this.textBoxX1.Size = new System.Drawing.Size(168, 29); + this.textBoxX1.TabIndex = 5; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(372, 43); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(45, 30); + this.label5.TabIndex = 7; + this.label5.Text = "ms"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label6 + // + this.label6.BackColor = System.Drawing.Color.Transparent; + this.label6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label6.Location = new System.Drawing.Point(786, 39); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(45, 30); + this.label6.TabIndex = 10; + this.label6.Text = "V"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label7 + // + this.label7.BackColor = System.Drawing.Color.Transparent; + this.label7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label7.Location = new System.Drawing.Point(444, 41); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(159, 30); + this.label7.TabIndex = 9; + this.label7.Text = "信号源初始电平:"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX5 + // + // + // + // + this.textBoxX5.Border.Class = "TextBoxBorder"; + this.textBoxX5.Border.CornerDiameter = 5; + this.textBoxX5.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX5.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX5.Location = new System.Drawing.Point(609, 41); + this.textBoxX5.Name = "textBoxX5"; + this.textBoxX5.PreventEnterBeep = true; + this.textBoxX5.Size = new System.Drawing.Size(168, 29); + this.textBoxX5.TabIndex = 8; + // + // label8 + // + this.label8.BackColor = System.Drawing.Color.Transparent; + this.label8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label8.Location = new System.Drawing.Point(30, 97); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(159, 30); + this.label8.TabIndex = 12; + this.label8.Text = "信号源电平增加值:"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX6 + // + // + // + // + this.textBoxX6.Border.Class = "TextBoxBorder"; + this.textBoxX6.Border.CornerDiameter = 5; + this.textBoxX6.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX6.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX6.Location = new System.Drawing.Point(195, 97); + this.textBoxX6.Name = "textBoxX6"; + this.textBoxX6.PreventEnterBeep = true; + this.textBoxX6.Size = new System.Drawing.Size(168, 29); + this.textBoxX6.TabIndex = 11; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(444, 97); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(159, 30); + this.label9.TabIndex = 14; + this.label9.Text = "输出电平警告值:"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX7 + // + // + // + // + this.textBoxX7.Border.Class = "TextBoxBorder"; + this.textBoxX7.Border.CornerDiameter = 5; + this.textBoxX7.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX7.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX7.Location = new System.Drawing.Point(609, 97); + this.textBoxX7.Name = "textBoxX7"; + this.textBoxX7.PreventEnterBeep = true; + this.textBoxX7.Size = new System.Drawing.Size(168, 29); + this.textBoxX7.TabIndex = 13; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(372, 97); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(45, 30); + this.label10.TabIndex = 15; + this.label10.Text = "V"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(786, 97); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(45, 30); + this.label11.TabIndex = 16; + this.label11.Text = "V"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.label13); + this.groupBox2.Controls.Add(this.label15); + this.groupBox2.Controls.Add(this.textBoxX9); + this.groupBox2.Controls.Add(this.label16); + this.groupBox2.Controls.Add(this.label17); + this.groupBox2.Controls.Add(this.textBoxX10); + this.groupBox2.Controls.Add(this.label18); + this.groupBox2.Controls.Add(this.label19); + this.groupBox2.Controls.Add(this.textBoxX11); + this.groupBox2.Location = new System.Drawing.Point(31, 194); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(904, 162); + this.groupBox2.TabIndex = 17; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "频率灵敏度"; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(372, 97); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(45, 30); + this.label13.TabIndex = 15; + this.label13.Text = "V"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label15 + // + this.label15.BackColor = System.Drawing.Color.Transparent; + this.label15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label15.Location = new System.Drawing.Point(30, 97); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(159, 30); + this.label15.TabIndex = 12; + this.label15.Text = "测量误差电平增加值:"; + this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX9 + // + // + // + // + this.textBoxX9.Border.Class = "TextBoxBorder"; + this.textBoxX9.Border.CornerDiameter = 5; + this.textBoxX9.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX9.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX9.Location = new System.Drawing.Point(195, 97); + this.textBoxX9.Name = "textBoxX9"; + this.textBoxX9.PreventEnterBeep = true; + this.textBoxX9.Size = new System.Drawing.Size(168, 29); + this.textBoxX9.TabIndex = 11; + // + // label16 + // + this.label16.BackColor = System.Drawing.Color.Transparent; + this.label16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label16.Location = new System.Drawing.Point(786, 39); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(45, 30); + this.label16.TabIndex = 10; + this.label16.Text = "V"; + this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label17 + // + this.label17.BackColor = System.Drawing.Color.Transparent; + this.label17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label17.Location = new System.Drawing.Point(444, 41); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(159, 30); + this.label17.TabIndex = 9; + this.label17.Text = "频率差值>80MHz:"; + this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX10 + // + // + // + // + this.textBoxX10.Border.Class = "TextBoxBorder"; + this.textBoxX10.Border.CornerDiameter = 5; + this.textBoxX10.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX10.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX10.Location = new System.Drawing.Point(609, 41); + this.textBoxX10.Name = "textBoxX10"; + this.textBoxX10.PreventEnterBeep = true; + this.textBoxX10.Size = new System.Drawing.Size(168, 29); + this.textBoxX10.TabIndex = 8; + // + // label18 + // + this.label18.BackColor = System.Drawing.Color.Transparent; + this.label18.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label18.Location = new System.Drawing.Point(372, 43); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(45, 30); + this.label18.TabIndex = 7; + this.label18.Text = "Hz"; + this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label19 + // + this.label19.BackColor = System.Drawing.Color.Transparent; + this.label19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label19.Location = new System.Drawing.Point(34, 45); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(155, 30); + this.label19.TabIndex = 6; + this.label19.Text = "频率差值<=80MHz:"; + this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX11 + // + // + // + // + this.textBoxX11.Border.Class = "TextBoxBorder"; + this.textBoxX11.Border.CornerDiameter = 5; + this.textBoxX11.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX11.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX11.Location = new System.Drawing.Point(195, 45); + this.textBoxX11.Name = "textBoxX11"; + this.textBoxX11.PreventEnterBeep = true; + this.textBoxX11.Size = new System.Drawing.Size(168, 29); + this.textBoxX11.TabIndex = 5; + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.label12); + this.groupBox3.Controls.Add(this.label14); + this.groupBox3.Controls.Add(this.textBoxX8); + this.groupBox3.Controls.Add(this.label20); + this.groupBox3.Controls.Add(this.label21); + this.groupBox3.Controls.Add(this.textBoxX12); + this.groupBox3.Controls.Add(this.label22); + this.groupBox3.Controls.Add(this.label23); + this.groupBox3.Controls.Add(this.textBoxX13); + this.groupBox3.Location = new System.Drawing.Point(31, 373); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(904, 162); + this.groupBox3.TabIndex = 18; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "周期灵敏度"; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(372, 97); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(45, 30); + this.label12.TabIndex = 15; + this.label12.Text = "V"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label14 + // + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(30, 97); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(159, 30); + this.label14.TabIndex = 12; + this.label14.Text = "测量误差电平增加值:"; + this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX8 + // + // + // + // + this.textBoxX8.Border.Class = "TextBoxBorder"; + this.textBoxX8.Border.CornerDiameter = 5; + this.textBoxX8.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX8.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX8.Location = new System.Drawing.Point(195, 97); + this.textBoxX8.Name = "textBoxX8"; + this.textBoxX8.PreventEnterBeep = true; + this.textBoxX8.Size = new System.Drawing.Size(168, 29); + this.textBoxX8.TabIndex = 11; + // + // label20 + // + this.label20.BackColor = System.Drawing.Color.Transparent; + this.label20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label20.Location = new System.Drawing.Point(786, 39); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(45, 30); + this.label20.TabIndex = 10; + this.label20.Text = "倍"; + this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label21 + // + this.label21.BackColor = System.Drawing.Color.Transparent; + this.label21.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label21.Location = new System.Drawing.Point(444, 41); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(159, 30); + this.label21.TabIndex = 9; + this.label21.Text = "周期差值>80MHz:"; + this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX12 + // + // + // + // + this.textBoxX12.Border.Class = "TextBoxBorder"; + this.textBoxX12.Border.CornerDiameter = 5; + this.textBoxX12.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX12.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX12.Location = new System.Drawing.Point(609, 41); + this.textBoxX12.Name = "textBoxX12"; + this.textBoxX12.PreventEnterBeep = true; + this.textBoxX12.Size = new System.Drawing.Size(168, 29); + this.textBoxX12.TabIndex = 8; + // + // label22 + // + this.label22.BackColor = System.Drawing.Color.Transparent; + this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label22.Location = new System.Drawing.Point(372, 43); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(45, 30); + this.label22.TabIndex = 7; + this.label22.Text = "倍"; + this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label23 + // + this.label23.BackColor = System.Drawing.Color.Transparent; + this.label23.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label23.Location = new System.Drawing.Point(34, 45); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(155, 30); + this.label23.TabIndex = 6; + this.label23.Text = "周期差值<=80MHz:"; + this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // textBoxX13 + // + // + // + // + this.textBoxX13.Border.Class = "TextBoxBorder"; + this.textBoxX13.Border.CornerDiameter = 5; + this.textBoxX13.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded; + this.textBoxX13.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxX13.Location = new System.Drawing.Point(195, 45); + this.textBoxX13.Name = "textBoxX13"; + this.textBoxX13.PreventEnterBeep = true; + this.textBoxX13.Size = new System.Drawing.Size(168, 29); + this.textBoxX13.TabIndex = 5; + // // SettingCtrlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -181,19 +693,17 @@ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(238)))), ((int)(((byte)(242))))); this.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_white_shadow; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.Controls.Add(this.button1); - this.Controls.Add(this.textBoxX3); - this.Controls.Add(this.textBoxX2); - this.Controls.Add(this.label3); - this.Controls.Add(this.label2); - this.Controls.Add(this.label4); - this.Controls.Add(this.textBoxX4); - this.Controls.Add(this.btnSave); - this.Controls.Add(this.btnCancel); + this.Controls.Add(this.tabControl1); this.DoubleBuffered = true; this.Margin = new System.Windows.Forms.Padding(0); this.Name = "SettingCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); this.ResumeLayout(false); } @@ -209,5 +719,41 @@ private System.Windows.Forms.Label label4; private DevComponents.DotNetBar.Controls.TextBoxX textBoxX4; private System.Windows.Forms.Button button1; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label14; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX8; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label21; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX12; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label label23; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX13; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label15; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX9; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label17; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX10; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label19; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX11; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label9; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX7; + private System.Windows.Forms.Label label8; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX6; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX5; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label1; + private DevComponents.DotNetBar.Controls.TextBoxX textBoxX1; } } diff --git a/RbFreqStandMeasure/status/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/status/StatusCtrlForm.Designer.cs index 947eb81..4051656 100644 --- a/RbFreqStandMeasure/status/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/status/StatusCtrlForm.Designer.cs @@ -42,6 +42,7 @@ this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.panelSite = new System.Windows.Forms.Panel(); + this.panel1 = new System.Windows.Forms.Panel(); this.panelTime = new System.Windows.Forms.Panel(); this.labelTime = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); @@ -51,7 +52,8 @@ this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.labelBase = new System.Windows.Forms.Label(); - this.panel1 = new System.Windows.Forms.Panel(); + this.label8 = new System.Windows.Forms.Label(); + this.label_clockStatus = new System.Windows.Forms.Label(); this.panelLocation.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); @@ -95,7 +97,7 @@ this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(75, 25); this.label13.TabIndex = 1; - this.label13.Text = "Z"; + this.label13.Text = "Z:"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label12 @@ -107,7 +109,7 @@ this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(75, 25); this.label12.TabIndex = 1; - this.label12.Text = "Y"; + this.label12.Text = "Y:"; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label11 @@ -119,7 +121,7 @@ this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(75, 25); this.label11.TabIndex = 1; - this.label11.Text = "X"; + this.label11.Text = "X:"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label9 @@ -130,7 +132,7 @@ this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(75, 25); this.label9.TabIndex = 1; - this.label9.Text = "经度"; + this.label9.Text = "经度:"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label10 @@ -142,7 +144,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(75, 25); this.label10.TabIndex = 1; - this.label10.Text = "纬度"; + this.label10.Text = "纬度:"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // panel2 @@ -162,8 +164,9 @@ // // label5 // - this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.BackColor = System.Drawing.Color.Black; this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.ForeColor = System.Drawing.SystemColors.ControlLight; this.label5.Location = new System.Drawing.Point(49, 59); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(28, 25); @@ -173,8 +176,9 @@ // // label4 // - this.label4.BackColor = System.Drawing.Color.Transparent; + this.label4.BackColor = System.Drawing.Color.Black; this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label4.ForeColor = System.Drawing.SystemColors.ControlLight; this.label4.Location = new System.Drawing.Point(49, 23); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(28, 25); @@ -206,12 +210,20 @@ // // panelSite // - this.panelSite.BackColor = System.Drawing.Color.White; + this.panelSite.BackColor = System.Drawing.Color.Black; this.panelSite.Location = new System.Drawing.Point(113, 15); this.panelSite.Name = "panelSite"; this.panelSite.Size = new System.Drawing.Size(610, 610); this.panelSite.TabIndex = 4; // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.Black; + this.panel1.Location = new System.Drawing.Point(12, 10); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(760, 622); + this.panel1.TabIndex = 5; + // // panelTime // this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; @@ -240,39 +252,41 @@ // this.label7.BackColor = System.Drawing.Color.Transparent; this.label7.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label7.Location = new System.Drawing.Point(0, 140); + this.label7.Location = new System.Drawing.Point(7, 137); this.label7.Margin = new System.Windows.Forms.Padding(0); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(75, 25); this.label7.TabIndex = 1; - this.label7.Text = "MJD"; + this.label7.Text = "MJD:"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label6 // this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label6.Location = new System.Drawing.Point(0, 100); + this.label6.Location = new System.Drawing.Point(7, 97); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(75, 25); this.label6.TabIndex = 1; - this.label6.Text = "时间"; + this.label6.Text = "时间:"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(0, 60); + this.label1.Location = new System.Drawing.Point(7, 57); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(75, 25); this.label1.TabIndex = 1; - this.label1.Text = "日期"; + this.label1.Text = "日期:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // panelBase // this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label8); + this.panelBase.Controls.Add(this.label_clockStatus); this.panelBase.Controls.Add(this.label3); this.panelBase.Controls.Add(this.label2); this.panelBase.Controls.Add(this.labelBase); @@ -286,22 +300,22 @@ // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(0, 100); + this.label3.Location = new System.Drawing.Point(7, 100); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(75, 25); this.label3.TabIndex = 1; - this.label3.Text = "接收机"; + this.label3.Text = "接收机:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(0, 60); + this.label2.Location = new System.Drawing.Point(7, 60); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(75, 25); this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; + this.label2.Text = "原子钟:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelBase @@ -316,13 +330,29 @@ this.labelBase.Text = "基本信息"; this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // panel1 + // label8 // - this.panel1.BackColor = System.Drawing.Color.Black; - this.panel1.Location = new System.Drawing.Point(12, 10); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(760, 622); - this.panel1.TabIndex = 5; + this.label8.BackColor = System.Drawing.Color.Transparent; + this.label8.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label8.ForeColor = System.Drawing.Color.Gray; + this.label8.Location = new System.Drawing.Point(86, 100); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(67, 25); + this.label8.TabIndex = 5; + this.label8.Text = "定位有效"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label_clockStatus + // + this.label_clockStatus.BackColor = System.Drawing.Color.Transparent; + this.label_clockStatus.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label_clockStatus.ForeColor = System.Drawing.Color.Gray; + this.label_clockStatus.Location = new System.Drawing.Point(87, 59); + this.label_clockStatus.Name = "label_clockStatus"; + this.label_clockStatus.Size = new System.Drawing.Size(65, 25); + this.label_clockStatus.TabIndex = 4; + this.label_clockStatus.Text = "快锁"; + this.label_clockStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // StatusCtrlForm // @@ -370,5 +400,7 @@ private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label4; private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label_clockStatus; } }