diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_base.png b/RbFreqStandMeasure/res/images/bg_status_base.png index ef11397..4a98341 100644 --- a/RbFreqStandMeasure/res/images/bg_status_base.png +++ b/RbFreqStandMeasure/res/images/bg_status_base.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_base.png b/RbFreqStandMeasure/res/images/bg_status_base.png index ef11397..4a98341 100644 --- a/RbFreqStandMeasure/res/images/bg_status_base.png +++ b/RbFreqStandMeasure/res/images/bg_status_base.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_location.png b/RbFreqStandMeasure/res/images/bg_status_location.png index 64d28d5..8468ddc 100644 --- a/RbFreqStandMeasure/res/images/bg_status_location.png +++ b/RbFreqStandMeasure/res/images/bg_status_location.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_base.png b/RbFreqStandMeasure/res/images/bg_status_base.png index ef11397..4a98341 100644 --- a/RbFreqStandMeasure/res/images/bg_status_base.png +++ b/RbFreqStandMeasure/res/images/bg_status_base.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_location.png b/RbFreqStandMeasure/res/images/bg_status_location.png index 64d28d5..8468ddc 100644 --- a/RbFreqStandMeasure/res/images/bg_status_location.png +++ b/RbFreqStandMeasure/res/images/bg_status_location.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_time.png b/RbFreqStandMeasure/res/images/bg_status_time.png index eec981a..6c7b5ab 100644 --- a/RbFreqStandMeasure/res/images/bg_status_time.png +++ b/RbFreqStandMeasure/res/images/bg_status_time.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_base.png b/RbFreqStandMeasure/res/images/bg_status_base.png index ef11397..4a98341 100644 --- a/RbFreqStandMeasure/res/images/bg_status_base.png +++ b/RbFreqStandMeasure/res/images/bg_status_base.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_location.png b/RbFreqStandMeasure/res/images/bg_status_location.png index 64d28d5..8468ddc 100644 --- a/RbFreqStandMeasure/res/images/bg_status_location.png +++ b/RbFreqStandMeasure/res/images/bg_status_location.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_time.png b/RbFreqStandMeasure/res/images/bg_status_time.png index eec981a..6c7b5ab 100644 --- a/RbFreqStandMeasure/res/images/bg_status_time.png +++ b/RbFreqStandMeasure/res/images/bg_status_time.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/icon_page_next.png b/RbFreqStandMeasure/res/images/icon_page_next.png new file mode 100644 index 0000000..a5c6531 --- /dev/null +++ b/RbFreqStandMeasure/res/images/icon_page_next.png Binary files differ diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs deleted file mode 100644 index 73e477a..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs +++ /dev/null @@ -1,299 +0,0 @@ - -namespace Casic.Birmm.RbFreqStandMeasure -{ - partial class HomeCtrlForm - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.panel3 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel3 - // - this.panel3.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; - this.panel3.Controls.Add(this.label8); - this.panel3.Controls.Add(this.label13); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label11); - this.panel3.Controls.Add(this.label9); - this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 2; - // - // panel2 - // - this.panel2.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Location = new System.Drawing.Point(6, 160); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 1; - // - // panel1 - // - this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Location = new System.Drawing.Point(6, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; - this.panel4.Location = new System.Drawing.Point(230, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(788, 226); - this.panel4.TabIndex = 3; - // - // panel5 - // - this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; - this.panel5.Location = new System.Drawing.Point(230, 226); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(788, 424); - this.panel5.TabIndex = 4; - // - // 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, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(224, 25); - this.label1.TabIndex = 0; - this.label1.Text = "基本信息"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // 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.Name = "label2"; - this.label2.Size = new System.Drawing.Size(75, 25); - this.label2.TabIndex = 1; - this.label2.Text = "原子钟"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // 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.Location = new System.Drawing.Point(0, 100); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(75, 25); - this.label3.TabIndex = 1; - this.label3.Text = "接收机"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.Transparent; - this.label4.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(0, 20); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(224, 25); - this.label4.TabIndex = 0; - this.label4.Text = "时间信息"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label5 - // - this.label5.BackColor = System.Drawing.Color.Transparent; - this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label5.Location = new System.Drawing.Point(0, 60); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(75, 25); - this.label5.TabIndex = 1; - this.label5.Text = "日期"; - this.label5.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.Name = "label6"; - this.label6.Size = new System.Drawing.Size(75, 25); - this.label6.TabIndex = 1; - this.label6.Text = "时间"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label7 - // - 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.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.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label8 - // - 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.Location = new System.Drawing.Point(0, 20); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(224, 25); - this.label8.TabIndex = 0; - this.label8.Text = "位置信息"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label9 - // - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label9.Location = new System.Drawing.Point(0, 60); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(75, 25); - this.label9.TabIndex = 1; - this.label9.Text = "经度"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label10 - // - this.label10.BackColor = System.Drawing.Color.Transparent; - this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label10.Location = new System.Drawing.Point(0, 100); - this.label10.Margin = new System.Windows.Forms.Padding(0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(75, 25); - this.label10.TabIndex = 1; - this.label10.Text = "纬度"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label11 - // - this.label11.BackColor = System.Drawing.Color.Transparent; - this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label11.Location = new System.Drawing.Point(0, 140); - this.label11.Margin = new System.Windows.Forms.Padding(0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(75, 25); - this.label11.TabIndex = 1; - this.label11.Text = "X"; - this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label12 - // - this.label12.BackColor = System.Drawing.Color.Transparent; - this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label12.Location = new System.Drawing.Point(0, 180); - this.label12.Margin = new System.Windows.Forms.Padding(0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(75, 25); - this.label12.TabIndex = 1; - this.label12.Text = "Y"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label13 - // - this.label13.BackColor = System.Drawing.Color.Transparent; - this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.label13.Location = new System.Drawing.Point(0, 220); - this.label13.Margin = new System.Windows.Forms.Padding(0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(75, 25); - this.label13.TabIndex = 1; - this.label13.Text = "Z"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // HomeCtrlForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); - this.Controls.Add(this.panel5); - this.Controls.Add(this.panel4); - this.Controls.Add(this.panel3); - this.Controls.Add(this.panel2); - this.Controls.Add(this.panel1); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "HomeCtrlForm"; - this.Size = new System.Drawing.Size(1024, 654); - this.panel3.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label13; - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs deleted file mode 100644 index f8fd5c6..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace Casic.Birmm.RbFreqStandMeasure -{ - public partial class HomeCtrlForm : UserControl - { - public HomeCtrlForm() - { - InitializeComponent(); - } - } -} diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RbFreqStandMeasure/HomeCtrlForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs index d819a23..514b595 100644 --- a/RbFreqStandMeasure/Properties/Resources.Designer.cs +++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs @@ -253,6 +253,26 @@ /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// + internal static System.Drawing.Bitmap icon_page_next { + get { + object obj = ResourceManager.GetObject("icon_page_next", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap icon_page_pre { + get { + object obj = ResourceManager.GetObject("icon_page_pre", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// internal static System.Drawing.Bitmap icon_setting { get { object obj = ResourceManager.GetObject("icon_setting", resourceCulture); diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx index cfdb255..49bcc21 100644 --- a/RbFreqStandMeasure/Properties/Resources.resx +++ b/RbFreqStandMeasure/Properties/Resources.resx @@ -118,6 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -127,12 +133,15 @@ ..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -142,8 +151,11 @@ ..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_measure_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,6 +166,9 @@ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\res\images\icon_dev.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -163,28 +178,19 @@ ..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\res\images\bg_status_location.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj index 7c12768..6665ea0 100644 --- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj +++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj @@ -88,12 +88,24 @@ - + UserControl - + HomeCtrlForm.cs + + Form + + + SetDevCannelDlg.cs + + + Form + + + SetDevTestDlg.cs + Form @@ -152,9 +164,15 @@ StatusCtrlForm.cs - + HomeCtrlForm.cs + + SetDevCannelDlg.cs + + + SetDevTestDlg.cs + DataBackupDlg.cs @@ -280,6 +298,12 @@ + + + + + + diff --git a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs index 1bd008c..c499d68 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.Designer.cs @@ -34,6 +34,7 @@ this.btnMinSys = new System.Windows.Forms.Button(); this.btnExitSys = new System.Windows.Forms.Button(); this.labTitle = new System.Windows.Forms.Label(); + this.panelMain = new System.Windows.Forms.Panel(); this.panDev = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labDevText = new System.Windows.Forms.Label(); this.labDevSelected = new System.Windows.Forms.Label(); @@ -54,15 +55,10 @@ this.labHomeText = new System.Windows.Forms.Label(); this.picIconHome = new System.Windows.Forms.PictureBox(); this.labHomeSelected = new System.Windows.Forms.Label(); - this.panMeasure = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); - this.labMeasureText = new System.Windows.Forms.Label(); - this.labMeasureSelected = new System.Windows.Forms.Label(); - this.picIconMeasure = new System.Windows.Forms.PictureBox(); this.panCounter = new Casic.Birmm.RbFreqStandMeasure.RoundPanel(); this.labCounterSelected = new System.Windows.Forms.Label(); this.labCounterText = new System.Windows.Forms.Label(); this.picIconCounter = new System.Windows.Forms.PictureBox(); - this.panelMain = new System.Windows.Forms.Panel(); this.panMenu.SuspendLayout(); this.penBanner.SuspendLayout(); this.panDev.SuspendLayout(); @@ -75,8 +71,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).BeginInit(); this.panHome.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).BeginInit(); - this.panMeasure.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).BeginInit(); this.panCounter.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).BeginInit(); this.SuspendLayout(); @@ -89,7 +83,6 @@ this.panMenu.Controls.Add(this.panStatus); this.panMenu.Controls.Add(this.panData); this.panMenu.Controls.Add(this.panHome); - this.panMenu.Controls.Add(this.panMeasure); this.panMenu.Controls.Add(this.panCounter); this.panMenu.Location = new System.Drawing.Point(0, 64); this.panMenu.Name = "panMenu"; @@ -155,13 +148,20 @@ this.labTitle.Text = "铷原子频标比对测量软件"; this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // + // panelMain + // + this.panelMain.Location = new System.Drawing.Point(0, 114); + this.panelMain.Name = "panelMain"; + this.panelMain.Size = new System.Drawing.Size(1024, 654); + this.panelMain.TabIndex = 2; + // // panDev // this.panDev.Back = System.Drawing.Color.Empty; this.panDev.Controls.Add(this.labDevText); this.panDev.Controls.Add(this.labDevSelected); this.panDev.Controls.Add(this.picIconDev); - this.panDev.Location = new System.Drawing.Point(214, 0); + this.panDev.Location = new System.Drawing.Point(264, 0); this.panDev.MatrixRound = 8; this.panDev.Name = "panDev"; this.panDev.Size = new System.Drawing.Size(141, 50); @@ -216,7 +216,7 @@ this.panSetting.Controls.Add(this.labSettingSelected); this.panSetting.Controls.Add(this.labSettingText); this.panSetting.Controls.Add(this.picIconSetting); - this.panSetting.Location = new System.Drawing.Point(879, 0); + this.panSetting.Location = new System.Drawing.Point(858, 0); this.panSetting.MatrixRound = 8; this.panSetting.Name = "panSetting"; this.panSetting.Size = new System.Drawing.Size(109, 50); @@ -272,7 +272,7 @@ this.panStatus.Controls.Add(this.labStatusText); this.panStatus.Controls.Add(this.picIconStatus); this.panStatus.Controls.Add(this.labStatusSelected); - this.panStatus.Location = new System.Drawing.Point(101, 0); + this.panStatus.Location = new System.Drawing.Point(125, 0); this.panStatus.MatrixRound = 8; this.panStatus.Name = "panStatus"; this.panStatus.Size = new System.Drawing.Size(109, 50); @@ -326,7 +326,7 @@ this.panData.Controls.Add(this.labDataSelected); this.panData.Controls.Add(this.labDataText); this.panData.Controls.Add(this.picIconData); - this.panData.Location = new System.Drawing.Point(765, 0); + this.panData.Location = new System.Drawing.Point(719, 0); this.panData.MatrixRound = 8; this.panData.Name = "panData"; this.panData.Size = new System.Drawing.Size(109, 50); @@ -430,68 +430,13 @@ this.labHomeSelected.Size = new System.Drawing.Size(55, 2); this.labHomeSelected.TabIndex = 0; // - // panMeasure - // - this.panMeasure.Back = System.Drawing.Color.Empty; - this.panMeasure.Controls.Add(this.labMeasureText); - this.panMeasure.Controls.Add(this.labMeasureSelected); - this.panMeasure.Controls.Add(this.picIconMeasure); - this.panMeasure.Location = new System.Drawing.Point(619, 0); - this.panMeasure.MatrixRound = 8; - this.panMeasure.Name = "panMeasure"; - this.panMeasure.Size = new System.Drawing.Size(141, 50); - this.panMeasure.TabIndex = 2; - this.panMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.panMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.panMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureText - // - this.labMeasureText.BackColor = System.Drawing.Color.Transparent; - this.labMeasureText.Cursor = System.Windows.Forms.Cursors.Hand; - this.labMeasureText.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); - this.labMeasureText.ForeColor = System.Drawing.SystemColors.ControlText; - this.labMeasureText.Location = new System.Drawing.Point(30, 14); - this.labMeasureText.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureText.Name = "labMeasureText"; - this.labMeasureText.Size = new System.Drawing.Size(106, 20); - this.labMeasureText.TabIndex = 2; - this.labMeasureText.Text = "计量信息管理"; - this.labMeasureText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labMeasureText.Click += new System.EventHandler(this.panMeasure_Click); - this.labMeasureText.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.labMeasureText.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // - // labMeasureSelected - // - this.labMeasureSelected.BackColor = System.Drawing.Color.Transparent; - this.labMeasureSelected.Location = new System.Drawing.Point(10, 48); - this.labMeasureSelected.Margin = new System.Windows.Forms.Padding(0); - this.labMeasureSelected.Name = "labMeasureSelected"; - this.labMeasureSelected.Size = new System.Drawing.Size(121, 2); - this.labMeasureSelected.TabIndex = 3; - // - // picIconMeasure - // - this.picIconMeasure.BackColor = System.Drawing.Color.Transparent; - this.picIconMeasure.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_measure; - this.picIconMeasure.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.picIconMeasure.Location = new System.Drawing.Point(10, 14); - this.picIconMeasure.Name = "picIconMeasure"; - this.picIconMeasure.Size = new System.Drawing.Size(20, 20); - this.picIconMeasure.TabIndex = 1; - this.picIconMeasure.TabStop = false; - this.picIconMeasure.Click += new System.EventHandler(this.panMeasure_Click); - this.picIconMeasure.MouseLeave += new System.EventHandler(this.panMeasure_MouseLeave); - this.picIconMeasure.MouseHover += new System.EventHandler(this.panMeasure_MouseHover); - // // panCounter // this.panCounter.Back = System.Drawing.Color.Empty; this.panCounter.Controls.Add(this.labCounterSelected); this.panCounter.Controls.Add(this.labCounterText); this.panCounter.Controls.Add(this.picIconCounter); - this.panCounter.Location = new System.Drawing.Point(360, 0); + this.panCounter.Location = new System.Drawing.Point(435, 0); this.panCounter.MatrixRound = 8; this.panCounter.Name = "panCounter"; this.panCounter.Size = new System.Drawing.Size(254, 50); @@ -540,13 +485,6 @@ this.picIconCounter.MouseLeave += new System.EventHandler(this.panCounter_MouseLeave); this.picIconCounter.MouseHover += new System.EventHandler(this.panCounter_MouseHover); // - // panelMain - // - this.panelMain.Location = new System.Drawing.Point(0, 114); - this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(1024, 654); - this.panelMain.TabIndex = 2; - // // RbFreqStdMeas // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -571,8 +509,6 @@ ((System.ComponentModel.ISupportInitialize)(this.picIconData)).EndInit(); this.panHome.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconHome)).EndInit(); - this.panMeasure.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picIconMeasure)).EndInit(); this.panCounter.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picIconCounter)).EndInit(); this.ResumeLayout(false); @@ -596,13 +532,9 @@ private RoundPanel panDev; private System.Windows.Forms.PictureBox picIconDev; private System.Windows.Forms.Label labDevText; - private System.Windows.Forms.Label labMeasureSelected; private RoundPanel panCounter; private System.Windows.Forms.Label labCounterText; private System.Windows.Forms.PictureBox picIconCounter; - private RoundPanel panMeasure; - private System.Windows.Forms.Label labMeasureText; - private System.Windows.Forms.PictureBox picIconMeasure; private RoundPanel panData; private System.Windows.Forms.Label labDataText; private System.Windows.Forms.PictureBox picIconData; diff --git a/RbFreqStandMeasure/RbFreqStdMeas.cs b/RbFreqStandMeasure/RbFreqStdMeas.cs index af980d7..234f0dc 100644 --- a/RbFreqStandMeasure/RbFreqStdMeas.cs +++ b/RbFreqStandMeasure/RbFreqStdMeas.cs @@ -24,7 +24,7 @@ { //拖动窗体 ReleaseCapture(); - SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); + SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0); } private void btnExitSys_Click(object sender, EventArgs e) { @@ -32,23 +32,23 @@ } private void btnMinSys_Click(object sender, EventArgs e) { - this.WindowState = FormWindowState.Minimized; + WindowState = FormWindowState.Minimized; } private void btnExitSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnExitSys, "退出"); + p.SetToolTip(btnExitSys, "退出"); } private void btnMinSys_MouseHover(object sender, EventArgs e) { ToolTip p = new ToolTip(); p.ShowAlways = true; - p.SetToolTip(this.btnMinSys, "最小化"); + p.SetToolTip(btnMinSys, "最小化"); } #endregion - private bool[] menuSelected = { true, false, false, false, false, false, false }; + private bool[] menuSelected = { true, false, false, false, false, false }; // 按钮图标 private PictureBox[] menuPics; // 按钮图标的资源名称(选中的资源名称在后面加上 _selected) @@ -58,13 +58,19 @@ // 按钮下划线 private Label[] menuUnderlines; + #region 样式配置 + private readonly Color textColor = Color.FromArgb(51, 51, 51); // #333333 + private readonly Color menuHoverBackColor = Color.FromArgb(86, 163, 242); // #56a3f2 + private readonly Color menuSelectedColor = Color.FromArgb(63, 132, 215); // #3f84d7 + #endregion + private void ClearAllMenuSelected() { // 找到当前选中的按钮 int index = 0; - for (int i = 0; i < this.menuSelected.Length; i++) + for (int i = 0; i < menuSelected.Length; i++) { - if (this.menuSelected[i] == true) + if (menuSelected[i] == true) { index = i; break; @@ -72,15 +78,15 @@ } // 将当前按钮的效果设置为默认未选中 - this.menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(this.menuIconResources[index], null); - this.menuLabels[index].ForeColor = ColorTranslator.FromHtml("#333333"); - this.menuUnderlines[index].BackColor = Color.Transparent; + menuPics[index].BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject(menuIconResources[index], null); + menuLabels[index].ForeColor = textColor; + menuUnderlines[index].BackColor = Color.Transparent; } #region 首页按钮点击、鼠标移入/移出效果 private void HoverHome() { - panHome.Back = ColorTranslator.FromHtml("#56a3f2"); + panHome.Back = menuHoverBackColor; } private void LeaveHome() { @@ -89,18 +95,18 @@ private void SelectHome() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveHome(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { true, false, false, false, false, false, false }; + menuSelected = new bool[] { true, false, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); - this.labHomeText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labHomeSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconHome.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_home_selected", null); + labHomeText.ForeColor = menuSelectedColor; + labHomeSelected.BackColor = menuSelectedColor; // 切换至首页 switchMainPanel(0); @@ -110,7 +116,7 @@ #region 基准状态按钮点击、移入/移出效果 private void HoverStatus() { - panStatus.Back = ColorTranslator.FromHtml("#56a3f2"); + panStatus.Back = menuHoverBackColor; } private void LeaveStatus() { @@ -119,18 +125,18 @@ private void SelectStatus() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveStatus(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, true, false, false, false, false, false }; + menuSelected = new bool[] { false, true, false, false, false, false }; // 将新选中的按钮设置为选中 - this.picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); - this.labStatusText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labStatusSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconStatus.BackgroundImage = (Bitmap) Resources.ResourceManager.GetObject("icon_status_selected", null); + labStatusText.ForeColor = menuSelectedColor; + labStatusSelected.BackColor = menuSelectedColor; // 切换到基准状态页面 switchMainPanel(1); @@ -140,7 +146,7 @@ #region 送检仪器按钮点击、移入/移出效果 private void HoverDev() { - panDev.Back = ColorTranslator.FromHtml("#56a3f2"); + panDev.Back = menuHoverBackColor; } private void LeaveDev() { @@ -149,18 +155,18 @@ private void SelectDev() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveDev(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, true, false, false ,false ,false }; + menuSelected = new bool[] { false, false, true, false, false ,false }; // 将新选中的按钮设置为选中 - this.picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); - this.labDevText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDevSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconDev.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_dev_selected", null); + labDevText.ForeColor = menuSelectedColor; + labDevSelected.BackColor = menuSelectedColor; // 切换至待检仪器管理 switchMainPanel(2); @@ -170,7 +176,7 @@ #region 频率计数器测量点击、移入/移出效果 private void HoverCounter() { - panCounter.Back = ColorTranslator.FromHtml("#56a3f2"); + panCounter.Back = menuHoverBackColor; } private void LeaveCounter() { @@ -179,55 +185,25 @@ private void SelectCounter() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveCounter(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, true, false, false, false }; + menuSelected = new bool[] { false, false, false, true, false, false }; // 将新选中的按钮设置为选中 - this.picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); - this.labCounterText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labCounterSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - } - #endregion - - #region 计量管理点击、移入/移出效果 - private void HoverMeasure() - { - panMeasure.Back = ColorTranslator.FromHtml("#56a3f2"); - } - private void LeaveMeasure() - { - panMeasure.Back = Color.Transparent; - } - private void SelectMeasure() - { - // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); - - // 鼠标移入效果去掉 - LeaveMeasure(); - - // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, true, false, false }; - - // 将新选中的按钮设置为选中 - this.picIconMeasure.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_measure_selected", null); - this.labMeasureText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labMeasureSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); - - // 切换至计量信息管理 - switchMainPanel(4); + picIconCounter.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_counter_selected", null); + labCounterText.ForeColor = menuSelectedColor; + labCounterSelected.BackColor = menuSelectedColor; } #endregion #region 数据管理点击、移入/移出效果 private void HoverData() { - panData.Back = ColorTranslator.FromHtml("#56a3f2"); + panData.Back = menuHoverBackColor; } private void LeaveData() { @@ -236,18 +212,18 @@ private void SelectData() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveData(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, true, false }; + menuSelected = new bool[] { false, false, false, false, true, false }; // 将新选中的按钮设置为选中 - this.picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); - this.labDataText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labDataSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconData.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_data_selected", null); + labDataText.ForeColor = menuSelectedColor; + labDataSelected.BackColor = menuSelectedColor; // 弹出对话框进行数据备份与还原操作 DataBackupDlg dataDlg = new DataBackupDlg(); @@ -258,7 +234,7 @@ #region 系统管理点击、移入/移出效果 private void HoverSetting() { - panSetting.Back = ColorTranslator.FromHtml("#56a3f2"); + panSetting.Back = menuHoverBackColor; } private void LeaveSetting() { @@ -267,21 +243,21 @@ private void SelectSetting() { // 移除所有按钮的选中样式 - this.ClearAllMenuSelected(); + ClearAllMenuSelected(); // 鼠标移入效果去掉 LeaveSetting(); // 重新设置所有按钮的状态 - this.menuSelected = new bool[] { false, false, false, false, false, false, true }; + menuSelected = new bool[] { false, false, false, false, false, true }; // 将新选中的按钮设置为选中 - this.picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); - this.labSettingText.ForeColor = ColorTranslator.FromHtml("#3f84d7"); - this.labSettingSelected.BackColor = ColorTranslator.FromHtml("#3f84d7"); + picIconSetting.BackgroundImage = (Bitmap)Resources.ResourceManager.GetObject("icon_setting_selected", null); + labSettingText.ForeColor = menuSelectedColor; + labSettingSelected.BackColor = menuSelectedColor; // 切换到设置的界面 - switchMainPanel(6); + switchMainPanel(5); } #endregion @@ -292,10 +268,10 @@ private void RbFreqStdMeas_Load(object sender, EventArgs e) { - this.menuPics = new PictureBox[] { this.picIconHome, this.picIconStatus, this.picIconDev, this.picIconCounter, this.picIconMeasure, this.picIconData, this.picIconSetting }; - this.menuLabels = new Label[] { this.labHomeText, this.labStatusText, this.labDevText, this.labCounterText, this.labMeasureText, this.labDataText, this.labSettingText }; - this.menuUnderlines = new Label[] { this.labHomeSelected, this.labStatusSelected, this.labDevSelected, this.labCounterSelected, this.labMeasureSelected, this.labDataSelected, this.labSettingSelected }; - this.menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_measure", "icon_data", "icon_setting" }; + menuPics = new PictureBox[] { picIconHome, picIconStatus, picIconDev, picIconCounter, picIconData, picIconSetting }; + menuLabels = new Label[] { labHomeText, labStatusText, labDevText, labCounterText, labDataText, labSettingText }; + menuUnderlines = new Label[] { labHomeSelected, labStatusSelected, labDevSelected, labCounterSelected, labDataSelected, labSettingSelected }; + menuIconResources = new string[] { "icon_home", "icon_status", "icon_dev", "icon_counter", "icon_data", "icon_setting" }; // 加载首页的内容 switchMainPanel(0); @@ -303,16 +279,16 @@ private void panHome_Click(object sender, EventArgs e) { - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { - this.SelectHome(); + SelectHome(); } } private void panHome_MouseHover(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { HoverHome(); } @@ -321,7 +297,7 @@ private void panHome_MouseLeave(object sender, EventArgs e) { // 没有选中首页时才动作 - if (this.menuSelected[0] == false) + if (menuSelected[0] == false) { LeaveHome(); } @@ -329,7 +305,7 @@ private void panStatus_Click(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { SelectStatus(); } @@ -337,7 +313,7 @@ private void panStatus_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { HoverStatus(); } @@ -346,7 +322,7 @@ private void panStatus_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[1] == false) + if (menuSelected[1] == false) { LeaveStatus(); } @@ -354,7 +330,7 @@ private void panDev_Click(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { SelectDev(); } @@ -362,7 +338,7 @@ private void panDev_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { HoverDev(); } @@ -370,7 +346,7 @@ private void panDev_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[2] == false) + if (menuSelected[2] == false) { LeaveDev(); } @@ -378,7 +354,7 @@ private void panCounter_Click(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { SelectCounter(); } @@ -386,7 +362,7 @@ private void panCounter_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { HoverCounter(); } @@ -394,39 +370,15 @@ private void panCounter_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[3] == false) + if (menuSelected[3] == false) { LeaveCounter(); } } - private void panMeasure_Click(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - SelectMeasure(); - } - } - - private void panMeasure_MouseHover(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - HoverMeasure(); - } - } - - private void panMeasure_MouseLeave(object sender, EventArgs e) - { - if (this.menuSelected[4] == false) - { - LeaveMeasure(); - } - } - private void panData_Click(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { SelectData(); } @@ -434,7 +386,7 @@ private void panData_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { HoverData(); } @@ -442,7 +394,7 @@ private void panData_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[5] == false) + if (menuSelected[5] == false) { LeaveData(); } @@ -450,7 +402,7 @@ private void panSetting_Click(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { SelectSetting(); } @@ -458,7 +410,7 @@ private void panSetting_MouseHover(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { HoverSetting(); } @@ -466,7 +418,7 @@ private void panSetting_MouseLeave(object sender, EventArgs e) { - if (this.menuSelected[6] == false) + if (menuSelected[5] == false) { LeaveSetting(); } @@ -474,26 +426,26 @@ private void switchMainPanel(int index) { - this.panelMain.Controls.Clear(); + panelMain.Controls.Clear(); switch (index) { case 0: // 首页 HomeCtrlForm home = new HomeCtrlForm(); home.Show(); - this.panelMain.Controls.Add(home); + panelMain.Controls.Add(home); break; case 1: // 基准状态 StatusCtrlForm statusForm = new StatusCtrlForm(); statusForm.Show(); - this.panelMain.Controls.Add(statusForm); + panelMain.Controls.Add(statusForm); break; case 2: // 待检设备 InfoCtrlForm infoForm = new InfoCtrlForm(); infoForm.Show(); - this.panelMain.Controls.Add(infoForm); + panelMain.Controls.Add(infoForm); break; case 3: // 频率计数器范围 @@ -502,13 +454,13 @@ case 4: // 计量信息 DevTestedCtrlForm tested = new DevTestedCtrlForm(); tested.Show(); - this.panelMain.Controls.Add(tested); + panelMain.Controls.Add(tested); break; - case 6: // 设置 + case 5: // 设置 SettingCtrlForm settingForm = new SettingCtrlForm(); settingForm.Show(); - this.panelMain.Controls.Add(settingForm); + panelMain.Controls.Add(settingForm); break; default: diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs index b4151fd..f90f752 100644 --- a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs +++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs @@ -79,10 +79,10 @@ this.panel3.Controls.Add(this.label11); this.panel3.Controls.Add(this.label9); this.panel3.Controls.Add(this.label10); - this.panel3.Location = new System.Drawing.Point(6, 360); + this.panel3.Location = new System.Drawing.Point(10, 358); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(224, 293); - this.panel3.TabIndex = 6; + this.panel3.Size = new System.Drawing.Size(220, 289); + this.panel3.TabIndex = 5; // // label8 // @@ -161,10 +161,10 @@ this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Controls.Add(this.label1); - this.panel2.Location = new System.Drawing.Point(6, 160); + this.panel2.Location = new System.Drawing.Point(10, 161); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(224, 200); - this.panel2.TabIndex = 5; + this.panel2.Size = new System.Drawing.Size(220, 197); + this.panel2.TabIndex = 4; // // label4 // @@ -217,11 +217,11 @@ this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label14); - this.panel1.Location = new System.Drawing.Point(6, 0); + this.panel1.Location = new System.Drawing.Point(10, 5); this.panel1.Margin = new System.Windows.Forms.Padding(0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(224, 160); - this.panel1.TabIndex = 4; + this.panel1.Size = new System.Drawing.Size(220, 156); + this.panel1.TabIndex = 3; // // label3 // @@ -261,9 +261,9 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panel3); + this.Controls.Add(this.panelSite); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); - this.Controls.Add(this.panelSite); this.Margin = new System.Windows.Forms.Padding(10); this.Name = "StatusCtrlForm"; this.Size = new System.Drawing.Size(1024, 654); diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs new file mode 100644 index 0000000..87a0085 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.Designer.cs @@ -0,0 +1,463 @@ + +namespace Casic.Birmm.RbFreqStandMeasure +{ + partial class HomeCtrlForm + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + 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.tableChannel = new System.Windows.Forms.DataGridView(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnNext = new System.Windows.Forms.Button(); + this.btnPre = new System.Windows.Forms.Button(); + this.textBoxPage = new System.Windows.Forms.TextBox(); + this.label14 = new System.Windows.Forms.Label(); + this.tableToBeTested = new System.Windows.Forms.DataGridView(); + this.panelLocation = new System.Windows.Forms.Panel(); + this.labelLocation = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.panelTime = new System.Windows.Forms.Panel(); + this.labelTime = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.panelBase = new System.Windows.Forms.Panel(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.labelBase = new System.Windows.Forms.Label(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).BeginInit(); + this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).BeginInit(); + this.panelLocation.SuspendLayout(); + this.panelTime.SuspendLayout(); + this.panelBase.SuspendLayout(); + this.SuspendLayout(); + // + // panel5 + // + this.panel5.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_channel; + this.panel5.Controls.Add(this.tableChannel); + this.panel5.Location = new System.Drawing.Point(230, 227); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(784, 420); + this.panel5.TabIndex = 4; + // + // tableChannel + // + this.tableChannel.AllowUserToAddRows = false; + this.tableChannel.AllowUserToDeleteRows = false; + this.tableChannel.AllowUserToResizeColumns = false; + this.tableChannel.AllowUserToResizeRows = false; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + 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)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.tableChannel.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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; + 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.tableChannel.DefaultCellStyle = dataGridViewCellStyle2; + 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; + 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.tableChannel.RowsDefaultCellStyle = dataGridViewCellStyle3; + this.tableChannel.RowTemplate.Height = 74; + this.tableChannel.Size = new System.Drawing.Size(764, 400); + this.tableChannel.TabIndex = 0; + // + // panel4 + // + this.panel4.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_tested; + this.panel4.Controls.Add(this.btnNext); + this.panel4.Controls.Add(this.btnPre); + this.panel4.Controls.Add(this.textBoxPage); + this.panel4.Controls.Add(this.label14); + this.panel4.Controls.Add(this.tableToBeTested); + this.panel4.Location = new System.Drawing.Point(230, 5); + this.panel4.Margin = new System.Windows.Forms.Padding(0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(784, 222); + this.panel4.TabIndex = 3; + // + // btnNext + // + this.btnNext.BackColor = System.Drawing.Color.Transparent; + this.btnNext.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_next; + this.btnNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnNext.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNext.Location = new System.Drawing.Point(721, 188); + this.btnNext.Name = "btnNext"; + this.btnNext.Size = new System.Drawing.Size(16, 16); + this.btnNext.TabIndex = 314; + this.btnNext.UseVisualStyleBackColor = false; + // + // btnPre + // + this.btnPre.BackColor = System.Drawing.Color.Transparent; + this.btnPre.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.icon_page_pre; + this.btnPre.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnPre.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnPre.Location = new System.Drawing.Point(667, 188); + this.btnPre.Name = "btnPre"; + this.btnPre.Size = new System.Drawing.Size(16, 16); + this.btnPre.TabIndex = 314; + this.btnPre.UseVisualStyleBackColor = false; + // + // textBoxPage + // + this.textBoxPage.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBoxPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.textBoxPage.Location = new System.Drawing.Point(693, 188); + this.textBoxPage.Name = "textBoxPage"; + this.textBoxPage.Size = new System.Drawing.Size(21, 16); + this.textBoxPage.TabIndex = 313; + this.textBoxPage.Text = "1"; + this.textBoxPage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.BackColor = System.Drawing.Color.Transparent; + this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label14.Location = new System.Drawing.Point(500, 188); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(144, 17); + this.label14.TabIndex = 312; + this.label14.Text = "共10条,每页5条,共2页"; + // + // tableToBeTested + // + this.tableToBeTested.AllowUserToAddRows = false; + this.tableToBeTested.AllowUserToDeleteRows = false; + this.tableToBeTested.AllowUserToResizeColumns = false; + this.tableToBeTested.AllowUserToResizeRows = false; + 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; + this.tableToBeTested.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + this.tableToBeTested.ColumnHeadersHeight = 32; + this.tableToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; + this.tableToBeTested.GridColor = System.Drawing.Color.WhiteSmoke; + this.tableToBeTested.Location = new System.Drawing.Point(10, 10); + this.tableToBeTested.MultiSelect = false; + this.tableToBeTested.Name = "tableToBeTested"; + this.tableToBeTested.RowHeadersVisible = false; + this.tableToBeTested.RowHeadersWidth = 40; + 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, 160); + this.tableToBeTested.TabIndex = 0; + this.tableToBeTested.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.tableToBeTested_CellDoubleClick); + // + // panelLocation + // + this.panelLocation.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_location; + this.panelLocation.Controls.Add(this.labelLocation); + this.panelLocation.Controls.Add(this.label13); + this.panelLocation.Controls.Add(this.label12); + this.panelLocation.Controls.Add(this.label11); + this.panelLocation.Controls.Add(this.label9); + this.panelLocation.Controls.Add(this.label10); + this.panelLocation.Location = new System.Drawing.Point(10, 358); + this.panelLocation.Name = "panelLocation"; + this.panelLocation.Size = new System.Drawing.Size(220, 289); + this.panelLocation.TabIndex = 2; + // + // labelLocation + // + this.labelLocation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelLocation.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelLocation.ForeColor = System.Drawing.Color.White; + this.labelLocation.Location = new System.Drawing.Point(10, 10); + this.labelLocation.Name = "labelLocation"; + this.labelLocation.Size = new System.Drawing.Size(200, 32); + this.labelLocation.TabIndex = 0; + this.labelLocation.Text = "位置信息"; + this.labelLocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.Transparent; + this.label13.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label13.Location = new System.Drawing.Point(0, 220); + this.label13.Margin = new System.Windows.Forms.Padding(0); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(75, 25); + this.label13.TabIndex = 1; + this.label13.Text = "Z"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label12 + // + this.label12.BackColor = System.Drawing.Color.Transparent; + this.label12.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label12.Location = new System.Drawing.Point(0, 180); + this.label12.Margin = new System.Windows.Forms.Padding(0); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(75, 25); + this.label12.TabIndex = 1; + this.label12.Text = "Y"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label11 + // + this.label11.BackColor = System.Drawing.Color.Transparent; + this.label11.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label11.Location = new System.Drawing.Point(0, 140); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(75, 25); + this.label11.TabIndex = 1; + this.label11.Text = "X"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label9 + // + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label9.Location = new System.Drawing.Point(0, 60); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(75, 25); + this.label9.TabIndex = 1; + this.label9.Text = "经度"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label10 + // + this.label10.BackColor = System.Drawing.Color.Transparent; + this.label10.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label10.Location = new System.Drawing.Point(0, 100); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(75, 25); + this.label10.TabIndex = 1; + this.label10.Text = "纬度"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelTime + // + this.panelTime.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_time; + this.panelTime.Controls.Add(this.labelTime); + this.panelTime.Controls.Add(this.label7); + this.panelTime.Controls.Add(this.label6); + this.panelTime.Controls.Add(this.label5); + this.panelTime.Location = new System.Drawing.Point(10, 161); + this.panelTime.Name = "panelTime"; + this.panelTime.Size = new System.Drawing.Size(220, 197); + this.panelTime.TabIndex = 1; + // + // labelTime + // + this.labelTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelTime.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelTime.ForeColor = System.Drawing.Color.White; + this.labelTime.Location = new System.Drawing.Point(10, 10); + this.labelTime.Name = "labelTime"; + this.labelTime.Size = new System.Drawing.Size(200, 32); + this.labelTime.TabIndex = 0; + this.labelTime.Text = "时间信息"; + this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label7 + // + 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.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.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.Name = "label6"; + this.label6.Size = new System.Drawing.Size(75, 25); + this.label6.TabIndex = 1; + this.label6.Text = "时间"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.BackColor = System.Drawing.Color.Transparent; + this.label5.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.label5.Location = new System.Drawing.Point(0, 60); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(75, 25); + this.label5.TabIndex = 1; + this.label5.Text = "日期"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // panelBase + // + this.panelBase.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_status_base; + this.panelBase.Controls.Add(this.label3); + this.panelBase.Controls.Add(this.label2); + this.panelBase.Controls.Add(this.labelBase); + this.panelBase.Location = new System.Drawing.Point(10, 5); + this.panelBase.Margin = new System.Windows.Forms.Padding(0); + this.panelBase.Name = "panelBase"; + this.panelBase.Size = new System.Drawing.Size(220, 156); + this.panelBase.TabIndex = 0; + // + // 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.Location = new System.Drawing.Point(0, 100); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(75, 25); + this.label3.TabIndex = 1; + 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.Name = "label2"; + this.label2.Size = new System.Drawing.Size(75, 25); + this.label2.TabIndex = 1; + this.label2.Text = "原子钟"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // labelBase + // + this.labelBase.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(132)))), ((int)(((byte)(215))))); + this.labelBase.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134))); + this.labelBase.ForeColor = System.Drawing.Color.White; + this.labelBase.Location = new System.Drawing.Point(10, 10); + this.labelBase.Name = "labelBase"; + this.labelBase.Size = new System.Drawing.Size(200, 32); + this.labelBase.TabIndex = 0; + this.labelBase.Text = "基本信息"; + this.labelBase.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // HomeCtrlForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238))))); + this.Controls.Add(this.panel5); + this.Controls.Add(this.panel4); + this.Controls.Add(this.panelLocation); + this.Controls.Add(this.panelTime); + this.Controls.Add(this.panelBase); + this.Margin = new System.Windows.Forms.Padding(0); + this.Name = "HomeCtrlForm"; + this.Size = new System.Drawing.Size(1024, 654); + this.Load += new System.EventHandler(this.HomeCtrlForm_Load); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tableChannel)).EndInit(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tableToBeTested)).EndInit(); + this.panelLocation.ResumeLayout(false); + this.panelTime.ResumeLayout(false); + this.panelBase.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panelBase; + private System.Windows.Forms.Panel panelTime; + private System.Windows.Forms.Panel panelLocation; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label labelBase; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelTime; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label labelLocation; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.DataGridView tableToBeTested; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.Button btnPre; + private System.Windows.Forms.TextBox textBoxPage; + private System.Windows.Forms.Button btnNext; + private System.Windows.Forms.DataGridView tableChannel; + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs new file mode 100644 index 0000000..bcd9479 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs @@ -0,0 +1,447 @@ +using Casic.Birmm.RbFreqStandMeasure.home; +using System; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure +{ + public partial class HomeCtrlForm : UserControl + { + int totalCount = 0; + int currentPage = 1; + int pageCount = 0; + int limitCount = 5; + DataTable devToBeTested = null; + DataTable channels = null; + + #region 样式常量定影 + private readonly Color titleBackColor = Color.FromArgb(63, 132, 215); // #3F64D7 + private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134); + #endregion + + public HomeCtrlForm() + { + InitializeComponent(); + } + + private void HomeCtrlForm_Load(object sender, EventArgs e) + { + // 初始化表格标题栏 + this.InitTableDevList(); + + // 加载待检测列表 + this.LoadDevToBeTested(); + + // 初始化各通道样式 + this.InitTableChannel(); + this.LoadChannelStatus(); + } + + private void InitTableDevList() + { + tableToBeTested.Columns.Clear(); + tableToBeTested.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 32), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableToBeTested.Controls.Add(tableHeader); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(0, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器类型 + Label colDevType = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器类型", + Location = new Point(100, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevType); + colDevType.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(200, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(300, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 客户单位 + Label colCustomComp = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户单位", + Location = new Point(400, 0), + Size = new Size(120, 32) + }; + tableToBeTested.Controls.Add(colCustomComp); + colCustomComp.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(520, 0), + Size = new Size(144, 32) + }; + tableToBeTested.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "通道号", + Location = new Point(664, 0), + Size = new Size(100, 32) + }; + tableToBeTested.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + totalCount = 0; + currentPage = 1; + pageCount = 0; + limitCount = 4; + } + + private void InitTableChannel() + { + tableChannel.Columns.Clear(); + tableChannel.Rows.Clear(); + + // 添加标题栏 + Panel tableHeader = new Panel + { + BackColor = Color.White, + Size = new Size(764, 30), + Location = new Point(0, 0) + }; + tableHeader.BackColor = titleBackColor; + tableChannel.Controls.Add(tableHeader); + + // 通道号 + Label colChannelNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "#", + Location = new Point(0, 0), + Size = new Size(30, 30) + }; + tableChannel.Controls.Add(colChannelNo); + colChannelNo.BringToFront(); + + // 仪器名称 + Label colDevName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器名称", + Location = new Point(30, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevName); + colDevName.BringToFront(); + + // 仪器编号 + Label colDevNo = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "仪器编号", + Location = new Point(100, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colDevNo); + colDevNo.BringToFront(); + + // 客户名称 + Label colCustomName = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "客户名称", + Location = new Point(170, 0), + Size = new Size(70, 30) + }; + tableChannel.Controls.Add(colCustomName); + colCustomName.BringToFront(); + + // 开始时间 + Label colStartTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "开始时间", + Location = new Point(240, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colStartTime); + colStartTime.BringToFront(); + + // 结束时间 + Label colEndTime = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "结束时间", + Location = new Point(330, 0), + Size = new Size(90, 30) + }; + tableChannel.Controls.Add(colEndTime); + colEndTime.BringToFront(); + + // 状态 + Label colStatus = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "状态", + Location = new Point(420, 0), + Size = new Size(44, 30) + }; + tableChannel.Controls.Add(colStatus); + colStatus.BringToFront(); + + // 频率稳定度 + Label colStablility = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "稳定度", + Location = new Point(464, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStablility); + colStablility.BringToFront(); + + // 频率准确度 + Label colAccuracy = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "准确度", + Location = new Point(539, 0), + Size = new Size(75, 30) + }; + tableChannel.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(614, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colStartup); + colStartup.BringToFront(); + + // 日老化率 + Label colAgingRate = new Label + { + Font = titleFont, + ForeColor = Color.White, + TextAlign = ContentAlignment.MiddleCenter, + BackColor = titleBackColor, + AutoSize = false, + Text = "日老化率", + Location = new Point(689, 0), + Size = new Size(75, 30) + }; + tableChannel.Controls.Add(colAgingRate); + colAgingRate.BringToFront(); + } + + private void LoadDevToBeTested() + { + devToBeTested = new DataTable(); + + devToBeTested.Columns.Add("devName", Type.GetType("System.String")); + devToBeTested.Columns.Add("devType", Type.GetType("System.String")); + devToBeTested.Columns.Add("devNo", Type.GetType("System.String")); + devToBeTested.Columns.Add("customName", Type.GetType("System.String")); + devToBeTested.Columns.Add("customComp", Type.GetType("System.String")); + devToBeTested.Columns.Add("startTime", Type.GetType("System.DateTime")); + devToBeTested.Columns.Add("channelNo", Type.GetType("System.String")); + + devToBeTested.Rows.Add("SF2001-1", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-2", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-3", "通用计数器", "00001", "203", "203", DateTime.Now); + devToBeTested.Rows.Add("SF2001-4", "通用计数器", "00001", "203", "203", DateTime.Now); + + tableToBeTested.DataSource = devToBeTested; + + // width=764px + tableToBeTested.Columns[0].Width = 100; + tableToBeTested.Columns[1].Width = 100; + tableToBeTested.Columns[2].Width = 100; + tableToBeTested.Columns[3].Width = 100; + tableToBeTested.Columns[4].Width = 120; + tableToBeTested.Columns[5].Width = 144; + tableToBeTested.Columns[6].Width = 100; + + tableToBeTested.Columns[0].ReadOnly = true; + tableToBeTested.Columns[1].ReadOnly = true; + tableToBeTested.Columns[2].ReadOnly = true; + tableToBeTested.Columns[3].ReadOnly = true; + tableToBeTested.Columns[4].ReadOnly = true; + tableToBeTested.Columns[5].ReadOnly = true; + tableToBeTested.Columns[6].ReadOnly = true; + } + + private void LoadChannelStatus() + { + channels = new DataTable(); + + channels.Columns.Add("channelNo", Type.GetType("System.String")); + channels.Columns.Add("devName", Type.GetType("System.String")); + channels.Columns.Add("devNo", Type.GetType("System.String")); + channels.Columns.Add("customName", Type.GetType("System.String")); + channels.Columns.Add("startTime", Type.GetType("System.DateTime")); + channels.Columns.Add("endTime", Type.GetType("System.DateTime")); + channels.Columns.Add("channelStatus", Type.GetType("System.String")); + channels.Columns.Add("stablility", Type.GetType("System.String")); + channels.Columns.Add("accuracy", Type.GetType("System.String")); + channels.Columns.Add("startup", Type.GetType("System.String")); + channels.Columns.Add("agingRate", Type.GetType("System.String")); + + channels.Rows.Add("1", "通用计数器", "00001", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("2", "通用计数器", "00002", "李涛", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("3", "", "", "", null, null, "空闲", "", "", "", ""); + channels.Rows.Add("4", "通用计数器", "00003", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + channels.Rows.Add("5", "通用计数器", "000016", "航天203", DateTime.Now, DateTime.Now, "占用", 0.99, 0.00, 099, 0.434); + + tableChannel.DataSource = channels; + + // width=764px + tableChannel.Columns[0].Width = 30; + tableChannel.Columns[1].Width = 70; + tableChannel.Columns[2].Width = 70; + tableChannel.Columns[3].Width = 70; + tableChannel.Columns[4].Width = 90; + tableChannel.Columns[5].Width = 90; + tableChannel.Columns[6].Width = 44; + tableChannel.Columns[7].Width = 75; + tableChannel.Columns[8].Width = 75; + tableChannel.Columns[9].Width = 75; + tableChannel.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; + } + + private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int rowIndex = this.tableToBeTested.CurrentCell.RowIndex; + int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex; + if (colIndex == 6) + { + SetDevTestDlg devTestDlg = new SetDevTestDlg(); + devTestDlg.ShowDialog(); + } + + } + } +} diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.resx b/RbFreqStandMeasure/home/HomeCtrlForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/HomeCtrlForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs new file mode 100644 index 0000000..508baca --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.Designer.cs @@ -0,0 +1,125 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevCannelDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label2 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // 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(197, 173); + 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 = 9; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(381, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "待检仪器"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(357, 83); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 4; + this.label7.Text = "预计结束时间"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(60, 83); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 5; + this.label6.Text = "测量开始时间"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(96, 30); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 8; + this.label1.Text = "通道号"; + // + // SetDevCannelDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevCannelDlg"; + this.Text = "设置待检仪器"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private RoundButton btnSave; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.cs b/RbFreqStandMeasure/home/SetDevCannelDlg.cs new file mode 100644 index 0000000..7ab6c5e --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevCannelDlg : Form + { + public SetDevCannelDlg() + { + InitializeComponent(); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevCannelDlg.resx b/RbFreqStandMeasure/home/SetDevCannelDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevCannelDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs new file mode 100644 index 0000000..e86e799 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.Designer.cs @@ -0,0 +1,162 @@ + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + partial class SetDevTestDlg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.btnSave = new Casic.Birmm.RbFreqStandMeasure.RoundButton(); + this.label7 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(46, 26); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 0; + this.label1.Text = "仪器名称"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(362, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 0; + this.label2.Text = "仪器编号"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(46, 63); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 0; + this.label3.Text = "客户名称"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(362, 63); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(53, 12); + this.label4.TabIndex = 0; + this.label4.Text = "选择通道"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(46, 102); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 0; + this.label5.Text = "检测项目"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(46, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(77, 12); + this.label6.TabIndex = 0; + this.label6.Text = "测量开始时间"; + // + // 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(204, 196); + 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 = 1; + this.btnSave.Text = "开始检测"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(362, 138); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(77, 12); + this.label7.TabIndex = 0; + this.label7.Text = "预计结束时间"; + // + // SetDevTestDlg + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(584, 261); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.label2); + this.Controls.Add(this.label4); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SetDevTestDlg"; + this.Text = "设置仪器检测项目"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private RoundButton btnSave; + private System.Windows.Forms.Label label7; + } +} \ No newline at end of file diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.cs b/RbFreqStandMeasure/home/SetDevTestDlg.cs new file mode 100644 index 0000000..d2f3fb5 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Casic.Birmm.RbFreqStandMeasure.home +{ + public partial class SetDevTestDlg : Form + { + public SetDevTestDlg() + { + InitializeComponent(); + } + + private void btnSave_Click(object sender, EventArgs e) + { + MessageBox.Show("已添加开始检测"); + } + } +} diff --git a/RbFreqStandMeasure/home/SetDevTestDlg.resx b/RbFreqStandMeasure/home/SetDevTestDlg.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/RbFreqStandMeasure/home/SetDevTestDlg.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RbFreqStandMeasure/res/images/bg_dev_channel.png b/RbFreqStandMeasure/res/images/bg_dev_channel.png index 7bac7ce..5eccf96 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_channel.png +++ b/RbFreqStandMeasure/res/images/bg_dev_channel.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_dev_tested.png b/RbFreqStandMeasure/res/images/bg_dev_tested.png index 0b43ead..a07109f 100644 --- a/RbFreqStandMeasure/res/images/bg_dev_tested.png +++ b/RbFreqStandMeasure/res/images/bg_dev_tested.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_base.png b/RbFreqStandMeasure/res/images/bg_status_base.png index ef11397..4a98341 100644 --- a/RbFreqStandMeasure/res/images/bg_status_base.png +++ b/RbFreqStandMeasure/res/images/bg_status_base.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_location.png b/RbFreqStandMeasure/res/images/bg_status_location.png index 64d28d5..8468ddc 100644 --- a/RbFreqStandMeasure/res/images/bg_status_location.png +++ b/RbFreqStandMeasure/res/images/bg_status_location.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/bg_status_time.png b/RbFreqStandMeasure/res/images/bg_status_time.png index eec981a..6c7b5ab 100644 --- a/RbFreqStandMeasure/res/images/bg_status_time.png +++ b/RbFreqStandMeasure/res/images/bg_status_time.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/icon_page_next.png b/RbFreqStandMeasure/res/images/icon_page_next.png new file mode 100644 index 0000000..a5c6531 --- /dev/null +++ b/RbFreqStandMeasure/res/images/icon_page_next.png Binary files differ diff --git a/RbFreqStandMeasure/res/images/icon_page_pre.png b/RbFreqStandMeasure/res/images/icon_page_pre.png new file mode 100644 index 0000000..82d0e18 --- /dev/null +++ b/RbFreqStandMeasure/res/images/icon_page_pre.png Binary files differ