diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.cs
new file mode 100644
index 0000000..11b3bba
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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.setting
+{
+ public partial class SettingCtrlForm : UserControl
+ {
+ public SettingCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.cs
new file mode 100644
index 0000000..11b3bba
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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.setting
+{
+ public partial class SettingCtrlForm : UserControl
+ {
+ public SettingCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.resx b/RbFreqStandMeasure/setting/SettingCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.cs
new file mode 100644
index 0000000..11b3bba
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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.setting
+{
+ public partial class SettingCtrlForm : UserControl
+ {
+ public SettingCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.resx b/RbFreqStandMeasure/setting/SettingCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
deleted file mode 100644
index 4779f1e..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.Designer.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.setting
-{
- partial class SettingForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(449, 3);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(160, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "设置系统参数";
- this.button1.UseVisualStyleBackColor = true;
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(449, 574);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(160, 23);
- this.button2.TabIndex = 0;
- this.button2.Text = "设置系统参数结束";
- this.button2.UseVisualStyleBackColor = true;
- //
- // SettingForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "SettingForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- }
-}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.cs
new file mode 100644
index 0000000..11b3bba
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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.setting
+{
+ public partial class SettingCtrlForm : UserControl
+ {
+ public SettingCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.resx b/RbFreqStandMeasure/setting/SettingCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
deleted file mode 100644
index 4779f1e..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.Designer.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.setting
-{
- partial class SettingForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(449, 3);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(160, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "设置系统参数";
- this.button1.UseVisualStyleBackColor = true;
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(449, 574);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(160, 23);
- this.button2.TabIndex = 0;
- this.button2.Text = "设置系统参数结束";
- this.button2.UseVisualStyleBackColor = true;
- //
- // SettingForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "SettingForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- }
-}
diff --git a/RbFreqStandMeasure/setting/SettingForm.cs b/RbFreqStandMeasure/setting/SettingForm.cs
deleted file mode 100644
index f118a7c..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.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.setting
-{
- public partial class SettingForm : UserControl
- {
- public SettingForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.Designer.cs b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
new file mode 100644
index 0000000..c624408
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.Designer.cs
@@ -0,0 +1,457 @@
+
+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.panelStatusHome = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.roundPanel1 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.roundPanel2 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ this.label6 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.roundPanel3 = new Casic.Birmm.RbFreqStandMeasure.RoundPanel();
+ 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.panelToBeTested = new System.Windows.Forms.Panel();
+ this.dgvDevToBeTested = new System.Windows.Forms.DataGridView();
+ this.仪器名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器类型 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.仪器编号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.客户名称 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.开始时间 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.通道号 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.panelStatusHome.SuspendLayout();
+ this.roundPanel1.SuspendLayout();
+ this.roundPanel2.SuspendLayout();
+ this.roundPanel3.SuspendLayout();
+ this.panelToBeTested.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panelStatusHome
+ //
+ this.panelStatusHome.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
+ this.panelStatusHome.Controls.Add(this.roundPanel3);
+ this.panelStatusHome.Controls.Add(this.roundPanel2);
+ this.panelStatusHome.Controls.Add(this.roundPanel1);
+ this.panelStatusHome.Location = new System.Drawing.Point(0, 0);
+ this.panelStatusHome.Margin = new System.Windows.Forms.Padding(0);
+ this.panelStatusHome.Name = "panelStatusHome";
+ this.panelStatusHome.Size = new System.Drawing.Size(250, 640);
+ this.panelStatusHome.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(70, 0);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "时间信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(70, 0);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // roundPanel1
+ //
+ this.roundPanel1.Back = System.Drawing.Color.Empty;
+ this.roundPanel1.BackColor = System.Drawing.Color.White;
+ this.roundPanel1.Controls.Add(this.label5);
+ this.roundPanel1.Controls.Add(this.label1);
+ this.roundPanel1.Controls.Add(this.label2);
+ this.roundPanel1.Location = new System.Drawing.Point(25, 50);
+ this.roundPanel1.MatrixRound = 8;
+ this.roundPanel1.Name = "roundPanel1";
+ this.roundPanel1.Size = new System.Drawing.Size(200, 110);
+ this.roundPanel1.TabIndex = 1;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(15, 75);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(41, 12);
+ this.label5.TabIndex = 1;
+ this.label5.Text = "接收机";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(15, 40);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(41, 12);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "原子钟";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(70, 0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "基本信息";
+ //
+ // roundPanel2
+ //
+ this.roundPanel2.Back = System.Drawing.Color.Empty;
+ this.roundPanel2.BackColor = System.Drawing.Color.White;
+ this.roundPanel2.Controls.Add(this.label8);
+ this.roundPanel2.Controls.Add(this.label6);
+ this.roundPanel2.Controls.Add(this.label7);
+ this.roundPanel2.Controls.Add(this.label4);
+ this.roundPanel2.Location = new System.Drawing.Point(25, 190);
+ this.roundPanel2.MatrixRound = 8;
+ this.roundPanel2.Name = "roundPanel2";
+ this.roundPanel2.Size = new System.Drawing.Size(200, 140);
+ this.roundPanel2.TabIndex = 1;
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(15, 75);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(29, 12);
+ this.label6.TabIndex = 1;
+ this.label6.Text = "时间";
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(15, 40);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(29, 12);
+ this.label7.TabIndex = 1;
+ this.label7.Text = "日期";
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(15, 110);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(23, 12);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "MJD";
+ //
+ // roundPanel3
+ //
+ this.roundPanel3.Back = System.Drawing.Color.Empty;
+ this.roundPanel3.BackColor = System.Drawing.Color.White;
+ this.roundPanel3.Controls.Add(this.label13);
+ this.roundPanel3.Controls.Add(this.label12);
+ this.roundPanel3.Controls.Add(this.label9);
+ this.roundPanel3.Controls.Add(this.label10);
+ this.roundPanel3.Controls.Add(this.label11);
+ this.roundPanel3.Controls.Add(this.label3);
+ this.roundPanel3.Location = new System.Drawing.Point(25, 370);
+ this.roundPanel3.MatrixRound = 8;
+ this.roundPanel3.Name = "roundPanel3";
+ this.roundPanel3.Size = new System.Drawing.Size(200, 210);
+ this.roundPanel3.TabIndex = 1;
+ //
+ // label9
+ //
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(15, 110);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(11, 12);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "X";
+ //
+ // label10
+ //
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(15, 75);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(29, 12);
+ this.label10.TabIndex = 1;
+ this.label10.Text = "纬度";
+ //
+ // label11
+ //
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(15, 40);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(29, 12);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "经度";
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(15, 145);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(11, 12);
+ this.label12.TabIndex = 1;
+ this.label12.Text = "Y";
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.Location = new System.Drawing.Point(15, 180);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(11, 12);
+ this.label13.TabIndex = 1;
+ this.label13.Text = "Z";
+ //
+ // panelToBeTested
+ //
+ this.panelToBeTested.Controls.Add(this.dgvDevToBeTested);
+ this.panelToBeTested.Location = new System.Drawing.Point(250, 0);
+ this.panelToBeTested.Name = "panelToBeTested";
+ this.panelToBeTested.Size = new System.Drawing.Size(750, 200);
+ this.panelToBeTested.TabIndex = 4;
+ //
+ // dgvDevToBeTested
+ //
+ this.dgvDevToBeTested.BackgroundColor = System.Drawing.SystemColors.Window;
+ this.dgvDevToBeTested.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvDevToBeTested.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.仪器名称,
+ this.仪器类型,
+ this.仪器编号,
+ this.客户名称,
+ this.开始时间,
+ this.通道号});
+ this.dgvDevToBeTested.Location = new System.Drawing.Point(3, 3);
+ this.dgvDevToBeTested.Name = "dgvDevToBeTested";
+ this.dgvDevToBeTested.RowTemplate.Height = 23;
+ this.dgvDevToBeTested.Size = new System.Drawing.Size(744, 194);
+ this.dgvDevToBeTested.TabIndex = 0;
+ //
+ // 仪器名称
+ //
+ this.仪器名称.HeaderText = "仪器名称";
+ this.仪器名称.Name = "仪器名称";
+ //
+ // 仪器类型
+ //
+ this.仪器类型.HeaderText = "仪器类型";
+ this.仪器类型.Name = "仪器类型";
+ //
+ // 仪器编号
+ //
+ this.仪器编号.HeaderText = "仪器编号";
+ this.仪器编号.Name = "仪器编号";
+ //
+ // 客户名称
+ //
+ this.客户名称.HeaderText = "客户名称";
+ this.客户名称.Name = "客户名称";
+ //
+ // 开始时间
+ //
+ this.开始时间.HeaderText = "开始时间";
+ this.开始时间.Name = "开始时间";
+ //
+ // 通道号
+ //
+ this.通道号.HeaderText = "通道号";
+ this.通道号.Name = "通道号";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Column1,
+ this.Column7,
+ this.Column2,
+ this.Column3,
+ this.Column4,
+ this.Column5,
+ this.Column6,
+ this.Column8,
+ this.Column9,
+ this.Column10,
+ this.Column11,
+ this.Column12});
+ this.dataGridView1.Location = new System.Drawing.Point(254, 207);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(743, 430);
+ this.dataGridView1.TabIndex = 5;
+ //
+ // Column1
+ //
+ this.Column1.HeaderText = "通道号";
+ this.Column1.Name = "Column1";
+ this.Column1.Width = 70;
+ //
+ // Column7
+ //
+ this.Column7.HeaderText = "当前状态";
+ this.Column7.Name = "Column7";
+ this.Column7.Width = 80;
+ //
+ // Column2
+ //
+ this.Column2.HeaderText = "仪器名称";
+ this.Column2.Name = "Column2";
+ this.Column2.Width = 80;
+ //
+ // Column3
+ //
+ this.Column3.HeaderText = "仪器编号";
+ this.Column3.Name = "Column3";
+ this.Column3.Width = 80;
+ //
+ // Column4
+ //
+ this.Column4.HeaderText = "客户名称";
+ this.Column4.Name = "Column4";
+ //
+ // Column5
+ //
+ this.Column5.HeaderText = "开始时间";
+ this.Column5.Name = "Column5";
+ //
+ // Column6
+ //
+ this.Column6.HeaderText = "结束时间";
+ this.Column6.Name = "Column6";
+ //
+ // Column8
+ //
+ this.Column8.HeaderText = "频率稳定度";
+ this.Column8.Name = "Column8";
+ //
+ // Column9
+ //
+ this.Column9.HeaderText = "频率准确度";
+ this.Column9.Name = "Column9";
+ //
+ // Column10
+ //
+ this.Column10.HeaderText = "开机特性";
+ this.Column10.Name = "Column10";
+ //
+ // Column11
+ //
+ this.Column11.HeaderText = "日老化率";
+ this.Column11.Name = "Column11";
+ //
+ // Column12
+ //
+ this.Column12.HeaderText = "频率计数器范围及灵敏度";
+ this.Column12.Name = "Column12";
+ //
+ // HomeCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.panelToBeTested);
+ this.Controls.Add(this.panelStatusHome);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "HomeCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelStatusHome.ResumeLayout(false);
+ this.roundPanel1.ResumeLayout(false);
+ this.roundPanel1.PerformLayout();
+ this.roundPanel2.ResumeLayout(false);
+ this.roundPanel2.PerformLayout();
+ this.roundPanel3.ResumeLayout(false);
+ this.roundPanel3.PerformLayout();
+ this.panelToBeTested.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.dgvDevToBeTested)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelStatusHome;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private RoundPanel roundPanel1;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label1;
+ private RoundPanel roundPanel2;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.Label label7;
+ private RoundPanel roundPanel3;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Panel panelToBeTested;
+ private System.Windows.Forms.DataGridView dgvDevToBeTested;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器类型;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 仪器编号;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 客户名称;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 开始时间;
+ private System.Windows.Forms.DataGridViewTextBoxColumn 通道号;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.cs b/RbFreqStandMeasure/HomeCtrlForm.cs
new file mode 100644
index 0000000..f8fd5c6
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.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
+{
+ public partial class HomeCtrlForm : UserControl
+ {
+ public HomeCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/HomeCtrlForm.resx b/RbFreqStandMeasure/HomeCtrlForm.resx
new file mode 100644
index 0000000..d86fe04
--- /dev/null
+++ b/RbFreqStandMeasure/HomeCtrlForm.resx
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
+ True
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 9b85898..4f8ca76 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,97 +29,70 @@
///
private void InitializeComponent()
{
- this.panelBanner = new System.Windows.Forms.Panel();
- this.labelTitle = new System.Windows.Forms.Label();
this.panelMenu = new System.Windows.Forms.Panel();
this.btnDevStatus = new System.Windows.Forms.Button();
this.btnInfoMan = new System.Windows.Forms.Button();
- this.btnMeasure = new System.Windows.Forms.Button();
this.btnDataMan = new System.Windows.Forms.Button();
this.btnSetting = new System.Windows.Forms.Button();
this.panelMain = new System.Windows.Forms.Panel();
- this.panelBanner.SuspendLayout();
+ this.btnCounter = new System.Windows.Forms.Button();
+ this.btnHome = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.panelFooter = new System.Windows.Forms.Panel();
+ this.labelFooter = new System.Windows.Forms.Label();
this.panelMenu.SuspendLayout();
+ this.panelFooter.SuspendLayout();
this.SuspendLayout();
//
- // panelBanner
- //
- this.panelBanner.Controls.Add(this.labelTitle);
- this.panelBanner.Location = new System.Drawing.Point(4, 0);
- this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
- this.panelBanner.Name = "panelBanner";
- this.panelBanner.Size = new System.Drawing.Size(1000, 64);
- this.panelBanner.TabIndex = 0;
- //
- // labelTitle
- //
- this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.labelTitle.Location = new System.Drawing.Point(0, 0);
- this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
- this.labelTitle.Name = "labelTitle";
- this.labelTitle.Size = new System.Drawing.Size(1000, 64);
- this.labelTitle.TabIndex = 0;
- this.labelTitle.Text = "铷原子频标比对测量软件";
- this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
// panelMenu
//
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Controls.Add(this.btnHome);
this.panelMenu.Controls.Add(this.btnSetting);
this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnCounter);
this.panelMenu.Controls.Add(this.btnMeasure);
this.panelMenu.Controls.Add(this.btnInfoMan);
- this.panelMenu.Controls.Add(this.btnDevStatus);
- this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Location = new System.Drawing.Point(4, 0);
this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
this.panelMenu.Name = "panelMenu";
- this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.Size = new System.Drawing.Size(1000, 64);
this.panelMenu.TabIndex = 1;
//
// btnDevStatus
//
- this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Location = new System.Drawing.Point(100, 0);
this.btnDevStatus.Name = "btnDevStatus";
- this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.Size = new System.Drawing.Size(150, 64);
this.btnDevStatus.TabIndex = 0;
- this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.Text = "基准状态";
this.btnDevStatus.UseVisualStyleBackColor = true;
+ this.btnDevStatus.Click += new System.EventHandler(this.btnDevStatus_Click);
//
// btnInfoMan
//
- this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Location = new System.Drawing.Point(250, 0);
this.btnInfoMan.Name = "btnInfoMan";
- this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.Size = new System.Drawing.Size(150, 64);
this.btnInfoMan.TabIndex = 0;
- this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.Text = "送检仪器管理";
this.btnInfoMan.UseVisualStyleBackColor = true;
this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
//
- // btnMeasure
- //
- this.btnMeasure.Location = new System.Drawing.Point(435, 0);
- this.btnMeasure.Name = "btnMeasure";
- this.btnMeasure.Size = new System.Drawing.Size(75, 50);
- this.btnMeasure.TabIndex = 0;
- this.btnMeasure.Text = "计量检测";
- this.btnMeasure.UseVisualStyleBackColor = true;
- //
// btnDataMan
//
- this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Location = new System.Drawing.Point(750, 0);
this.btnDataMan.Name = "btnDataMan";
- this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.Size = new System.Drawing.Size(150, 64);
this.btnDataMan.TabIndex = 0;
this.btnDataMan.Text = "数据管理";
this.btnDataMan.UseVisualStyleBackColor = true;
//
// btnSetting
//
- this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Location = new System.Drawing.Point(900, 0);
this.btnSetting.Name = "btnSetting";
- this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.Size = new System.Drawing.Size(100, 64);
this.btnSetting.TabIndex = 0;
this.btnSetting.Text = "系统设置";
this.btnSetting.UseVisualStyleBackColor = true;
@@ -127,41 +100,91 @@
//
// panelMain
//
- this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Location = new System.Drawing.Point(4, 64);
this.panelMain.Margin = new System.Windows.Forms.Padding(0);
this.panelMain.Name = "panelMain";
- this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.Size = new System.Drawing.Size(1000, 640);
this.panelMain.TabIndex = 2;
//
+ // btnCounter
+ //
+ this.btnCounter.Location = new System.Drawing.Point(400, 0);
+ this.btnCounter.Name = "btnCounter";
+ this.btnCounter.Size = new System.Drawing.Size(200, 64);
+ this.btnCounter.TabIndex = 0;
+ this.btnCounter.Text = "频率计数器范围及灵敏度测量";
+ this.btnCounter.UseVisualStyleBackColor = true;
+ //
+ // btnHome
+ //
+ this.btnHome.Location = new System.Drawing.Point(0, 0);
+ this.btnHome.Name = "btnHome";
+ this.btnHome.Size = new System.Drawing.Size(100, 64);
+ this.btnHome.TabIndex = 1;
+ this.btnHome.Text = "首页";
+ this.btnHome.UseVisualStyleBackColor = true;
+ this.btnHome.Click += new System.EventHandler(this.btnHome_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(600, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(150, 64);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量信息管理";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // panelFooter
+ //
+ this.panelFooter.Controls.Add(this.labelFooter);
+ this.panelFooter.Location = new System.Drawing.Point(4, 704);
+ this.panelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.panelFooter.Name = "panelFooter";
+ this.panelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.panelFooter.TabIndex = 3;
+ //
+ // labelFooter
+ //
+ this.labelFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelFooter.Location = new System.Drawing.Point(0, 0);
+ this.labelFooter.Margin = new System.Windows.Forms.Padding(0);
+ this.labelFooter.Name = "labelFooter";
+ this.labelFooter.Size = new System.Drawing.Size(1000, 25);
+ this.labelFooter.TabIndex = 0;
+ this.labelFooter.Text = "欢迎使用铷原子频标对比测量软件";
+ this.labelFooter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
+ this.Controls.Add(this.panelFooter);
this.Controls.Add(this.panelMain);
this.Controls.Add(this.panelMenu);
- this.Controls.Add(this.panelBanner);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
- this.panelBanner.ResumeLayout(false);
this.panelMenu.ResumeLayout(false);
+ this.panelFooter.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
-
- private System.Windows.Forms.Panel panelBanner;
- private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.Panel panelMenu;
private System.Windows.Forms.Button btnSetting;
private System.Windows.Forms.Button btnDataMan;
- private System.Windows.Forms.Button btnMeasure;
private System.Windows.Forms.Button btnInfoMan;
private System.Windows.Forms.Button btnDevStatus;
private System.Windows.Forms.Panel panelMain;
+ private System.Windows.Forms.Button btnCounter;
+ private System.Windows.Forms.Button btnHome;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Panel panelFooter;
+ private System.Windows.Forms.Label labelFooter;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index 05d2ddb..3a94440 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -23,6 +23,11 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 默认显示基准状态的panel
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+
// 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -45,7 +50,7 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- InfoManForm infoForm = new InfoManForm();
+ InfoCtrlForm infoForm = new InfoCtrlForm();
infoForm.Show();
this.panelMain.Controls.Add(infoForm);
}
@@ -55,9 +60,29 @@
// 清除panel上的所有控件
this.panelMain.Controls.Clear();
- SettingForm settingForm = new SettingForm();
+ SettingCtrlForm settingForm = new SettingCtrlForm();
settingForm.Show();
this.panelMain.Controls.Add(settingForm);
}
+
+ private void btnDevStatus_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ StatusCtrlForm statusForm = new StatusCtrlForm();
+ statusForm.Show();
+ this.panelMain.Controls.Add(statusForm);
+ }
+
+ private void btnHome_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ HomeCtrlForm home = new HomeCtrlForm();
+ home.Show();
+ this.panelMain.Controls.Add(home);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 388c97e..affe19f 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -88,11 +88,17 @@
-
+
UserControl
-
- InfoManForm.cs
+
+ HomeCtrlForm.cs
+
+
+ UserControl
+
+
+ InfoCtrlForm.cs
Form
@@ -102,16 +108,31 @@
-
+
+ Component
+
+
+ Component
+
+
UserControl
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
-
- InfoManForm.cs
+
+ UserControl
+
+
+ StatusCtrlForm.cs
+
+
+ HomeCtrlForm.cs
+
+
+ InfoCtrlForm.cs
RbFreqStandMeasure.cs
@@ -126,8 +147,11 @@
Resources.resx
True
-
- SettingForm.cs
+
+ SettingCtrlForm.cs
+
+
+ StatusCtrlForm.cs
diff --git a/RbFreqStandMeasure/RoundButton.cs b/RbFreqStandMeasure/RoundButton.cs
new file mode 100644
index 0000000..ac1b0ac
--- /dev/null
+++ b/RbFreqStandMeasure/RoundButton.cs
@@ -0,0 +1,223 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundButton : Button
+ {
+
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ enum model
+ {
+ hover, //悬停
+ enter, //进入
+ press, //按下
+ enable //启用
+ }
+
+ public Color HoverBackColor { get; set; }
+ public Color EnterBackColor { get; set; }
+ public Color PressBackColor { get; set; }
+ public Color HoverForeColor { get; set; }
+ public Color EnterForeColor { get; set; }
+ public Color PressForeColor { get; set; }
+
+ public int Radius { get; set; }
+
+ model paintmodel = model.hover;
+ public RoundButton()
+ {
+ InitializeComponent();
+
+ //设置基本样式,这些得带上,不然会有黑边
+ FlatStyle = FlatStyle.Flat;
+ FlatAppearance.BorderSize = 0;
+ FlatAppearance.BorderColor = Color.FromArgb(0, 0, 0, 0);
+ FlatAppearance.MouseDownBackColor = Color.Transparent;
+ FlatAppearance.MouseOverBackColor = Color.Transparent;
+
+ SetDefaultColor();
+
+ }
+ public void SetDefaultColor()
+ {
+ //设置各个初始颜色值
+ HoverBackColor = Color.LightBlue;
+ EnterBackColor = Color.Blue;
+ PressBackColor = Color.DarkBlue;
+ HoverForeColor = Color.White;
+ EnterForeColor = Color.White;
+ PressForeColor = Color.White;
+
+ // 默认圆角值
+ Radius = 18;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ base.OnPaint(e);//这个不能去,而且得放在前面,不然会有黑框之类的莫名其妙的东西
+ var colorback = HoverBackColor;
+ var colorfore = HoverForeColor;
+
+ //根据不同的状态,设置不同的颜色
+ switch (paintmodel)
+ {
+ case model.hover:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ case model.enter:
+ colorback = EnterBackColor;
+ colorfore = EnterForeColor;
+ break;
+ case model.press:
+ colorback = PressBackColor;
+ colorfore = PressForeColor;
+ break;
+ case model.enable:
+ colorback = Color.LightGray;
+ break;
+ default:
+ colorback = HoverBackColor;
+ colorfore = HoverForeColor;
+ break;
+ }
+ Draw(e.ClipRectangle, e.Graphics, false, colorback);
+ DrawText(e.ClipRectangle, e.Graphics, colorfore);
+ }
+
+ // 鼠标进入事件
+ protected override void OnMouseEnter(EventArgs e)
+ {
+ paintmodel = model.enter;
+ base.OnMouseEnter(e);
+
+
+ }
+ //鼠标离开事件
+ protected override void OnMouseLeave(EventArgs e)
+ {
+ paintmodel = model.hover;
+ base.OnMouseLeave(e);
+
+ }
+
+ //鼠标按下事件
+ protected override void OnMouseDown(MouseEventArgs mevent)
+ {
+ paintmodel = model.press;
+ base.OnMouseDown(mevent);
+ }
+ protected override void OnEnabledChanged(EventArgs e)
+ {
+ paintmodel = Enabled ? model.hover : model.enable;
+
+ //false 转换为true的时候不会刷新 这里强制刷新下
+ Invalidate();
+
+ base.OnEnabledChanged(e);
+
+ }
+ void Draw(Rectangle rectangle, Graphics g, bool cusp, Color begin_color, Color? end_colorex = null)
+ {
+ Color end_color = end_colorex == null ? begin_color : (Color)end_colorex;
+ int span = 2;
+ // 抗锯齿
+ g.SmoothingMode = SmoothingMode.AntiAlias;
+ // 渐变填充
+ LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(rectangle, begin_color, end_color, LinearGradientMode.Vertical);
+ // 画尖角
+ if (cusp)
+ {
+ span = 10;
+ PointF p1 = new PointF(rectangle.Width - 12, rectangle.Y + 10);
+ PointF p2 = new PointF(rectangle.Width - 12, rectangle.Y + 30);
+ PointF p3 = new PointF(rectangle.Width, rectangle.Y + 20);
+ PointF[] ptsArray = { p1, p2, p3 };
+ g.FillPolygon(myLinearGradientBrush, ptsArray);
+ }
+ //填充
+ g.FillPath(myLinearGradientBrush, DrawRoundRect(rectangle.X, rectangle.Y, rectangle.Width - span, rectangle.Height - 1, Radius));
+
+ }
+ void DrawText(Rectangle rectangle, Graphics g, Color color)
+ {
+ // 填充文字
+ SolidBrush sbr = new SolidBrush(color);
+ var rect = new RectangleF();
+ switch (TextAlign)
+ {
+ case ContentAlignment.MiddleCenter:
+ rect = getTextRec(rectangle, g);
+ break;
+ default:
+ rect = getTextRec(rectangle, g);
+ break;
+ }
+ g.DrawString(Text, Font, sbr, rect);
+ }
+ RectangleF getTextRec(Rectangle rectangle, Graphics g)
+ {
+ //获取文字区域
+ var rect = new RectangleF();
+ var size = g.MeasureString(Text, Font);
+ if (size.Width > rectangle.Width || size.Height > rectangle.Height)
+ {
+ rect = rectangle;
+ }
+ else
+ {
+ rect.Size = size;
+ rect.Location = new PointF(rectangle.X + (rectangle.Width - size.Width) / 2, rectangle.Y + (rectangle.Height - size.Height) / 2);
+ }
+ return rect;
+ }
+ GraphicsPath DrawRoundRect(int x, int y, int width, int height, int radius)
+ {
+ //四边圆角
+ GraphicsPath gp = new GraphicsPath();
+ gp.AddArc(x, y, radius, radius, 180, 90);
+ gp.AddArc(width - radius, y, radius, radius, 270, 90);
+ gp.AddArc(width - radius, height - radius, radius, radius, 0, 90);
+ gp.AddArc(x, height - radius, radius, radius, 90, 90);
+ gp.CloseAllFigures();
+ return gp;
+ }
+ }
+}
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RoundPanel.cs b/RbFreqStandMeasure/RoundPanel.cs
new file mode 100644
index 0000000..524aee6
--- /dev/null
+++ b/RbFreqStandMeasure/RoundPanel.cs
@@ -0,0 +1,243 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.ComponentModel;
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ public partial class RoundPanel : Panel
+ {
+ private int mMatrixRound = 8;
+ private Color mBack;
+
+ public Color Back
+ {
+ get { return mBack; }
+ set
+ {
+ if (value == null)
+ {
+ mBack = Control.DefaultBackColor;
+ }
+ else
+ {
+ mBack = value;
+ }
+ base.Refresh();
+ }
+ }
+
+ public int MatrixRound
+ {
+ get { return mMatrixRound; }
+ set
+ {
+ mMatrixRound = value;
+ base.Refresh();
+ }
+ }
+
+ private GraphicsPath CreateRound(Rectangle rect, int radius)
+ {
+ GraphicsPath roundRect = new GraphicsPath();
+ //顶端
+ roundRect.AddLine(rect.Left + radius - 1, rect.Top - 1, rect.Right - radius, rect.Top - 1);
+ //右上角
+ roundRect.AddArc(rect.Right - radius, rect.Top - 1, radius, radius, 270, 90);
+ //右边
+ roundRect.AddLine(rect.Right, rect.Top + radius, rect.Right, rect.Bottom - radius);
+ //右下角
+
+ roundRect.AddArc(rect.Right - radius, rect.Bottom - radius, radius, radius, 0, 90);
+ //底边
+ roundRect.AddLine(rect.Right - radius, rect.Bottom, rect.Left + radius, rect.Bottom);
+ //左下角
+ roundRect.AddArc(rect.Left - 1, rect.Bottom - radius, radius, radius, 90, 90);
+ //左边
+ roundRect.AddLine(rect.Left - 1, rect.Top + radius, rect.Left - 1, rect.Bottom - radius);
+ //左上角
+ roundRect.AddArc(rect.Left - 1, rect.Top - 1, radius, radius, 180, 90);
+ return roundRect;
+ }
+
+ protected override void OnPaint(PaintEventArgs e)
+ {
+ int width = base.Width - base.Margin.Left - base.Margin.Right;
+ int height = base.Height - base.Margin.Top - base.Margin.Bottom;
+ Rectangle rec = new Rectangle(base.Margin.Left, base.Margin.Top, width, height);
+ GraphicsPath round = CreateRound(rec, mMatrixRound);
+ e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
+ e.Graphics.FillPath((Brush)(new SolidBrush(mBack)), round);
+ }
+
+ protected override void OnResize(EventArgs eventargs)
+ {
+ base.Refresh();
+ }
+
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ //private Color _borderColor = Color.FromArgb(23, 169, 254);
+ //private int _radius = 10;
+ //private RoundStyle _roundeStyle;
+ //private const int WM_PAINT = 0xF;
+
+ //public RoundPanel() : base()
+ //{
+ //}
+
+ /////
+ ///// 建立圆角路径的样式。
+ /////
+ //public enum RoundStyle
+ //{
+ // ///
+ // /// 四个角都不是圆角。
+ // ///
+ // None = 0,
+ // ///
+ // /// 四个角都为圆角。
+ // ///
+ // All = 1,
+ // ///
+ // /// 左边两个角为圆角。
+ // ///
+ // Left = 2,
+ // ///
+ // /// 右边两个角为圆角。
+ // ///
+ // Right = 3,
+ // ///
+ // /// 上边两个角为圆角。
+ // ///
+ // Top = 4,
+ // ///
+ // /// 下边两个角为圆角。
+ // ///
+ // Bottom = 5,
+ //}
+ /////
+ ///// 建立带有圆角样式的路径。
+ /////
+ ///// 用来建立路径的矩形。
+ ///// 圆角的大小。
+ ///// 圆角的样式。
+ ///// 是否把矩形长宽减 1,以便画出边框。
+ ///// 建立的路径。
+ //GraphicsPath CreatePath(Rectangle rect, int radius, RoundStyle style, bool correction)
+ //{
+ // GraphicsPath path = new GraphicsPath();
+ // int radiusCorrection = correction ? 1 : 0;
+ // switch (style)
+ // {
+ // case RoundStyle.None:
+ // path.AddRectangle(rect);
+ // break;
+ // case RoundStyle.All:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Left:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Y, rect.Right - radiusCorrection, rect.Bottom - radiusCorrection);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // break;
+ // case RoundStyle.Right:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddLine(rect.X, rect.Bottom - radiusCorrection, rect.X, rect.Y);
+ // break;
+ // case RoundStyle.Top:
+ // path.AddArc(rect.X, rect.Y, radius, radius, 180, 90);
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Y, radius, radius, 270, 90);
+ // path.AddLine(rect.Right - radiusCorrection, rect.Bottom - radiusCorrection, rect.X, rect.Bottom - radiusCorrection);
+ // break;
+ // case RoundStyle.Bottom:
+ // path.AddArc(rect.Right - radius - radiusCorrection, rect.Bottom - radius - radiusCorrection, radius, radius, 0, 90);
+ // path.AddArc(rect.X, rect.Bottom - radius - radiusCorrection, radius, radius, 90, 90);
+ // path.AddLine(rect.X, rect.Y, rect.Right - radiusCorrection, rect.Y);
+ // break;
+ // }
+ // path.CloseFigure(); //这句很关键,缺少会没有左边线。
+ // return path;
+ //}
+
+ //[DefaultValue(typeof(Color), "23, 169, 254"), Description("控件边框颜色")]
+ //public Color BorderColor
+ //{
+ // get { return _borderColor; }
+ // set
+ // {
+ // _borderColor = value;
+ // base.Invalidate();
+ // }
+ //}
+
+ //[DefaultValue(typeof(int), "5"), Description("圆角弧度大小")]
+ //public int Radius
+ //{
+ // get { return _radius; }
+ // set
+ // {
+ // _radius = value;
+ // base.Invalidate();
+ // }
+ //}
+ //public RoundStyle RoundeStyle
+ //{
+ // get { return _roundeStyle; }
+ // set
+ // {
+ // _roundeStyle = value;
+ // base.Invalidate();
+ // }
+ //}
+ //protected override void WndProc(ref Message m)
+ //{
+ // try
+ // {
+ // base.WndProc(ref m);
+ // if (m.Msg == WM_PAINT)
+ // {
+ // if (this.Radius > 0)
+ // {
+ // using (Graphics g = Graphics.FromHwnd(this.Handle))
+ // {
+ // Rectangle r = new Rectangle();
+ // r.Width = this.Width;
+ // r.Height = this.Height;
+ // DrawBorder(g, r, this.RoundeStyle, this.Radius);
+ // }
+ // }
+ // }
+ // }
+ // catch(Exception ex)
+ // {
+ // MessageBox.Show(ex.Message);
+ // }
+ //}
+
+ //private void DrawBorder(Graphics g, Rectangle rect, RoundStyle roundStyle, int radius)
+ //{
+ // rect.Width -= 1;
+ // rect.Height -= 1;
+ // using (GraphicsPath path = CreatePath(rect, radius, roundStyle, false))
+ // {
+ // using (Pen pen = new Pen(this.BorderColor))
+ // {
+ // g.DrawPath(pen, path);
+ // }
+ // }
+ //}
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.Designer.cs b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
new file mode 100644
index 0000000..bf5071a
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.Designer.cs
@@ -0,0 +1,135 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure
+{
+ partial class StatusCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.panelSite = new System.Windows.Forms.Panel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.panelStatus = new System.Windows.Forms.Panel();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.panelSite.SuspendLayout();
+ this.panelStatus.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // panelSite
+ //
+ this.panelSite.Controls.Add(this.label5);
+ this.panelSite.Location = new System.Drawing.Point(200, 0);
+ this.panelSite.Name = "panelSite";
+ this.panelSite.Size = new System.Drawing.Size(800, 640);
+ this.panelSite.TabIndex = 3;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(77, 53);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(65, 12);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "卫星位置图";
+ //
+ // panelStatus
+ //
+ this.panelStatus.BackColor = System.Drawing.SystemColors.Window;
+ this.panelStatus.Controls.Add(this.label4);
+ this.panelStatus.Controls.Add(this.label3);
+ this.panelStatus.Controls.Add(this.label2);
+ this.panelStatus.Controls.Add(this.label1);
+ this.panelStatus.Location = new System.Drawing.Point(0, 0);
+ this.panelStatus.Name = "panelStatus";
+ this.panelStatus.Size = new System.Drawing.Size(200, 640);
+ this.panelStatus.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(59, 185);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(53, 12);
+ this.label4.TabIndex = 0;
+ this.label4.Text = "事件信息";
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(59, 139);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(53, 12);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "位置信息";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(59, 98);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(53, 12);
+ this.label2.TabIndex = 0;
+ this.label2.Text = "锁定状态";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(33, 53);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(29, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "状态";
+ //
+ // StatusCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.panelSite);
+ this.Controls.Add(this.panelStatus);
+ this.Margin = new System.Windows.Forms.Padding(10);
+ this.Name = "StatusCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.panelSite.ResumeLayout(false);
+ this.panelSite.PerformLayout();
+ this.panelStatus.ResumeLayout(false);
+ this.panelStatus.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panelSite;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Panel panelStatus;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.cs b/RbFreqStandMeasure/StatusCtrlForm.cs
new file mode 100644
index 0000000..239e9f5
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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
+{
+ public partial class StatusCtrlForm : UserControl
+ {
+ public StatusCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/StatusCtrlForm.resx b/RbFreqStandMeasure/StatusCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/StatusCtrlForm.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/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
new file mode 100644
index 0000000..9d47996
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -0,0 +1,99 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.label1 = new System.Windows.Forms.Label();
+ this.dataGridView1 = new System.Windows.Forms.DataGridView();
+ this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "送检仪器管理";
+ //
+ // dataGridView1
+ //
+ this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView1.Location = new System.Drawing.Point(23, 137);
+ this.dataGridView1.Name = "dataGridView1";
+ this.dataGridView1.RowTemplate.Height = 23;
+ this.dataGridView1.Size = new System.Drawing.Size(935, 420);
+ this.dataGridView1.TabIndex = 1;
+ //
+ // btnAddDev
+ //
+ this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
+ this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnAddDev.FlatAppearance.BorderSize = 0;
+ this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Location = new System.Drawing.Point(441, 71);
+ this.btnAddDev.Name = "btnAddDev";
+ this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnAddDev.PressForeColor = System.Drawing.Color.White;
+ this.btnAddDev.Radius = 18;
+ this.btnAddDev.Size = new System.Drawing.Size(75, 23);
+ this.btnAddDev.TabIndex = 3;
+ this.btnAddDev.Text = "添加";
+ this.btnAddDev.UseVisualStyleBackColor = true;
+ //
+ // InfoCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.btnAddDev);
+ this.Controls.Add(this.dataGridView1);
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.DataGridView dataGridView1;
+ private RoundButton btnAddDev;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
new file mode 100644
index 0000000..31a3e61
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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.info
+{
+ public partial class InfoCtrlForm : UserControl
+ {
+ public InfoCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.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/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
deleted file mode 100644
index 3196eee..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.Designer.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.info
-{
- partial class InfoManForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.label1 = new System.Windows.Forms.Label();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(424, 226);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "用户信息管理";
- //
- // InfoManForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.label1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "InfoManForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Label label1;
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
deleted file mode 100644
index 614b3f9..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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.info
-{
- public partial class InfoManForm : UserControl
- {
- public InfoManForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/info/InfoManForm.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/setting/SettingCtrlForm.Designer.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
new file mode 100644
index 0000000..a05bc64
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingCtrlForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ 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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 614);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingCtrlForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingCtrlForm";
+ this.Size = new System.Drawing.Size(1000, 640);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.cs b/RbFreqStandMeasure/setting/SettingCtrlForm.cs
new file mode 100644
index 0000000..11b3bba
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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.setting
+{
+ public partial class SettingCtrlForm : UserControl
+ {
+ public SettingCtrlForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingCtrlForm.resx b/RbFreqStandMeasure/setting/SettingCtrlForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingCtrlForm.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/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
deleted file mode 100644
index 4779f1e..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.Designer.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-
-namespace Casic.Birmm.RbFreqStandMeasure.setting
-{
- partial class SettingForm
- {
- ///
- /// 必需的设计器变量。
- ///
- 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.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(449, 3);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(160, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "设置系统参数";
- this.button1.UseVisualStyleBackColor = true;
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(449, 574);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(160, 23);
- this.button2.TabIndex = 0;
- this.button2.Text = "设置系统参数结束";
- this.button2.UseVisualStyleBackColor = true;
- //
- // SettingForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Margin = new System.Windows.Forms.Padding(0);
- this.Name = "SettingForm";
- this.Size = new System.Drawing.Size(1000, 600);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- }
-}
diff --git a/RbFreqStandMeasure/setting/SettingForm.cs b/RbFreqStandMeasure/setting/SettingForm.cs
deleted file mode 100644
index f118a7c..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.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.setting
-{
- public partial class SettingForm : UserControl
- {
- public SettingForm()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/RbFreqStandMeasure/setting/SettingForm.resx b/RbFreqStandMeasure/setting/SettingForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/RbFreqStandMeasure/setting/SettingForm.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