중량조정 수정

main
CJY 2025-07-17 15:19:37 +09:00
parent 4d2508ff73
commit 094a7cd0c2
5 changed files with 5515 additions and 2355 deletions

View File

@ -198,9 +198,9 @@ namespace INT63DC_6CH.Controls
case DataStore.WeightStatus.CalStandby: case DataStore.WeightStatus.CalStandby:
if (rbChecked == true) if (rbChecked == true)
{ {
if (this.ParentForm.IsInternalBalanceMode == true) if (this.ParentForm.IsBasicMode == true)
{ {
#region 내부 분동 모드 #region 기본모드
// 현재중량 표시 // 현재중량 표시
labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
labelWeight.ForeColor = this.NormalColor; labelWeight.ForeColor = this.NormalColor;
@ -213,7 +213,7 @@ namespace INT63DC_6CH.Controls
} }
else else
{ {
#region 외부 분동 모드 #region 교정모드
// 분동중량 표시 // 분동중량 표시
labelWeight.Text = string.Format("-{0}", this.ParentForm.ParentForm.BalanceWeight); labelWeight.Text = string.Format("-{0}", this.ParentForm.ParentForm.BalanceWeight);
labelWeight.ForeColor = this.NormalColor; labelWeight.ForeColor = this.NormalColor;
@ -229,9 +229,9 @@ namespace INT63DC_6CH.Controls
case DataStore.WeightStatus.CalBalans: case DataStore.WeightStatus.CalBalans:
if (rbChecked == true) if (rbChecked == true)
{ {
if (this.ParentForm.IsInternalBalanceMode == true) if (this.ParentForm.IsBasicMode == true)
{ {
#region 내부 분동 모드 #region 기본모드
// 현재중량 표시 // 현재중량 표시
labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
labelWeight.ForeColor = this.NormalColor; labelWeight.ForeColor = this.NormalColor;
@ -244,7 +244,7 @@ namespace INT63DC_6CH.Controls
} }
else else
{ {
#region 외부 분동 모드 #region 교정모드
// 분동중량표시 // 분동중량표시
labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); labelWeight.Text = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
labelWeight.ForeColor = this.NormalColor; labelWeight.ForeColor = this.NormalColor;

File diff suppressed because it is too large Load Diff

View File

@ -35,17 +35,16 @@
this.listBoxHelp = new SmartX.SmartListBox(); this.listBoxHelp = new SmartX.SmartListBox();
this.labelTitle = new SmartX.SmartLabel(); this.labelTitle = new SmartX.SmartLabel();
this.buttonCancel = new SmartX.SmartButton(); this.buttonCancel = new SmartX.SmartButton();
this.buttonBalance = new SmartX.SmartButton();
this.buttonStart = new SmartX.SmartButton(); this.buttonStart = new SmartX.SmartButton();
this.smartGroupBox1 = new SmartX.SmartGroupBox(); this.groupBoxButton = new SmartX.SmartGroupBox();
this.buttonExtanalCAL = new SmartX.SmartButton(); this.smartLabel3 = new SmartX.SmartLabel();
this.smartLabel2 = new SmartX.SmartLabel();
this.smartLabel1 = new SmartX.SmartLabel();
this.labelWeight1 = new SmartX.SmartLabel();
this.buttonZero = new SmartX.SmartButton(); this.buttonZero = new SmartX.SmartButton();
this.smartLabel2 = new SmartX.SmartLabel();
this.labelWeight1 = new SmartX.SmartLabel();
this.buttonExtanalCAL = new SmartX.SmartButton();
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
this.groupBoxHelp.SuspendLayout(); this.groupBoxHelp.SuspendLayout();
this.smartGroupBox1.SuspendLayout(); this.groupBoxButton.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// smartForm1 // smartForm1
@ -99,7 +98,7 @@
this.groupBoxHelp.BackPictureBox = this.smartForm1; this.groupBoxHelp.BackPictureBox = this.smartForm1;
this.groupBoxHelp.BackPictureBox1 = null; this.groupBoxHelp.BackPictureBox1 = null;
this.groupBoxHelp.Controls.Add(this.listBoxHelp); this.groupBoxHelp.Controls.Add(this.listBoxHelp);
this.groupBoxHelp.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); this.groupBoxHelp.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Bold);
this.groupBoxHelp.FrameLineColor1 = System.Drawing.Color.Black; this.groupBoxHelp.FrameLineColor1 = System.Drawing.Color.Black;
this.groupBoxHelp.FrameLineColor2 = System.Drawing.Color.Black; this.groupBoxHelp.FrameLineColor2 = System.Drawing.Color.Black;
this.groupBoxHelp.FrameLineThickness = 1; this.groupBoxHelp.FrameLineThickness = 1;
@ -109,7 +108,7 @@
this.groupBoxHelp.Location = new System.Drawing.Point(574, 569); this.groupBoxHelp.Location = new System.Drawing.Point(574, 569);
this.groupBoxHelp.Name = "groupBoxHelp"; this.groupBoxHelp.Name = "groupBoxHelp";
this.groupBoxHelp.RoundRadius = 5; this.groupBoxHelp.RoundRadius = 5;
this.groupBoxHelp.Size = new System.Drawing.Size(322, 181); this.groupBoxHelp.Size = new System.Drawing.Size(322, 196);
this.groupBoxHelp.TabIndex = 5; this.groupBoxHelp.TabIndex = 5;
this.groupBoxHelp.Text = "도움말"; this.groupBoxHelp.Text = "도움말";
this.groupBoxHelp.TextColor = System.Drawing.Color.Black; this.groupBoxHelp.TextColor = System.Drawing.Color.Black;
@ -123,7 +122,7 @@
this.listBoxHelp.ColumnDelimiter = '\0'; this.listBoxHelp.ColumnDelimiter = '\0';
this.listBoxHelp.ColumnOffsets = null; this.listBoxHelp.ColumnOffsets = null;
this.listBoxHelp.Enabled = false; this.listBoxHelp.Enabled = false;
this.listBoxHelp.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.listBoxHelp.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.listBoxHelp.FontColor = System.Drawing.Color.Black; this.listBoxHelp.FontColor = System.Drawing.Color.Black;
this.listBoxHelp.InitVisible = true; this.listBoxHelp.InitVisible = true;
this.listBoxHelp.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD; this.listBoxHelp.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
@ -155,7 +154,7 @@
this.labelTitle.BackPictureBox2 = null; this.labelTitle.BackPictureBox2 = null;
this.labelTitle.BorderColor = System.Drawing.Color.Black; this.labelTitle.BorderColor = System.Drawing.Color.Black;
this.labelTitle.BorderStyle = System.Windows.Forms.BorderStyle.None; this.labelTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitle.Font = new System.Drawing.Font("New Gulim", 35F, System.Drawing.FontStyle.Bold); this.labelTitle.Font = new System.Drawing.Font("새굴림", 35F, System.Drawing.FontStyle.Bold);
this.labelTitle.InitVisible = true; this.labelTitle.InitVisible = true;
this.labelTitle.LineSpacing = 0F; this.labelTitle.LineSpacing = 0F;
this.labelTitle.Location = new System.Drawing.Point(199, 7); this.labelTitle.Location = new System.Drawing.Point(199, 7);
@ -177,10 +176,10 @@
this.buttonCancel.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonCancel.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonCancel.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.DisableImage"))); this.buttonCancel.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.DisableImage")));
this.buttonCancel.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.DownImage"))); this.buttonCancel.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.DownImage")));
this.buttonCancel.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold); this.buttonCancel.Font = new System.Drawing.Font("새굴림", 20F, System.Drawing.FontStyle.Bold);
this.buttonCancel.GroupID = 0; this.buttonCancel.GroupID = 0;
this.buttonCancel.InitVisible = true; this.buttonCancel.InitVisible = true;
this.buttonCancel.Location = new System.Drawing.Point(128, 36); this.buttonCancel.Location = new System.Drawing.Point(363, 49);
this.buttonCancel.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonCancel.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.NestedClickEventPrevent = false; this.buttonCancel.NestedClickEventPrevent = false;
@ -199,39 +198,6 @@
this.buttonCancel.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.UpImage"))); this.buttonCancel.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonCancel.UpImage")));
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
// //
// buttonBalance
//
this.buttonBalance.BackPictureBox = null;
this.buttonBalance.BackPictureBox1 = null;
this.buttonBalance.BackPictureBox2 = null;
this.buttonBalance.ButtonColor = System.Drawing.Color.Gray;
this.buttonBalance.ButtonImageAutoSize = true;
this.buttonBalance.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonBalance.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonBalance.DisableImage")));
this.buttonBalance.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBalance.DownImage")));
this.buttonBalance.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
this.buttonBalance.GroupID = 0;
this.buttonBalance.InitVisible = true;
this.buttonBalance.Location = new System.Drawing.Point(445, 36);
this.buttonBalance.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonBalance.Name = "buttonBalance";
this.buttonBalance.NestedClickEventPrevent = false;
this.buttonBalance.OutlinePixel = 1;
this.buttonBalance.RepeatInterval = 200;
this.buttonBalance.RepeatIntervalAccelerate = null;
this.buttonBalance.SafeInterval = 200;
this.buttonBalance.Size = new System.Drawing.Size(100, 90);
this.buttonBalance.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonBalance.TabIndex = 10;
this.buttonBalance.TextColor = System.Drawing.Color.Black;
this.buttonBalance.TextDownColor = System.Drawing.Color.Black;
this.buttonBalance.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonBalance.TextLocation = new System.Drawing.Point(0, 0);
this.buttonBalance.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonBalance.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBalance.UpImage")));
this.buttonBalance.Visible = false;
this.buttonBalance.Click += new System.EventHandler(this.buttonBalance_Click);
//
// buttonStart // buttonStart
// //
this.buttonStart.BackPictureBox = null; this.buttonStart.BackPictureBox = null;
@ -242,10 +208,10 @@
this.buttonStart.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonStart.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonStart.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.DisableImage"))); this.buttonStart.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.DisableImage")));
this.buttonStart.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.DownImage"))); this.buttonStart.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.DownImage")));
this.buttonStart.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold); this.buttonStart.Font = new System.Drawing.Font("새굴림", 20F, System.Drawing.FontStyle.Bold);
this.buttonStart.GroupID = 0; this.buttonStart.GroupID = 0;
this.buttonStart.InitVisible = true; this.buttonStart.InitVisible = true;
this.buttonStart.Location = new System.Drawing.Point(22, 36); this.buttonStart.Location = new System.Drawing.Point(233, 49);
this.buttonStart.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonStart.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonStart.Name = "buttonStart"; this.buttonStart.Name = "buttonStart";
this.buttonStart.NestedClickEventPrevent = false; this.buttonStart.NestedClickEventPrevent = false;
@ -264,124 +230,49 @@
this.buttonStart.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.UpImage"))); this.buttonStart.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonStart.UpImage")));
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click); this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
// //
// smartGroupBox1 // groupBoxButton
// //
this.smartGroupBox1.BackPictureBox = this.smartForm1; this.groupBoxButton.BackPictureBox = this.smartForm1;
this.smartGroupBox1.BackPictureBox1 = null; this.groupBoxButton.BackPictureBox1 = null;
this.smartGroupBox1.Controls.Add(this.buttonZero); this.groupBoxButton.Controls.Add(this.smartLabel3);
this.smartGroupBox1.Controls.Add(this.buttonExtanalCAL); this.groupBoxButton.Controls.Add(this.buttonZero);
this.smartGroupBox1.Controls.Add(this.smartLabel2); this.groupBoxButton.Controls.Add(this.smartLabel2);
this.smartGroupBox1.Controls.Add(this.smartLabel1); this.groupBoxButton.Controls.Add(this.labelWeight1);
this.smartGroupBox1.Controls.Add(this.labelWeight1); this.groupBoxButton.Controls.Add(this.buttonCancel);
this.smartGroupBox1.Controls.Add(this.buttonCancel); this.groupBoxButton.Controls.Add(this.buttonStart);
this.smartGroupBox1.Controls.Add(this.buttonStart); this.groupBoxButton.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Bold);
this.smartGroupBox1.Controls.Add(this.buttonBalance); this.groupBoxButton.FrameLineColor1 = System.Drawing.Color.Black;
this.smartGroupBox1.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); this.groupBoxButton.FrameLineColor2 = System.Drawing.Color.Black;
this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.Black; this.groupBoxButton.FrameLineThickness = 1;
this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.Black; this.groupBoxButton.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.RoundRectangle;
this.smartGroupBox1.FrameLineThickness = 1; this.groupBoxButton.Image = null;
this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.RoundRectangle; this.groupBoxButton.InitVisible = true;
this.smartGroupBox1.Image = null; this.groupBoxButton.Location = new System.Drawing.Point(13, 569);
this.smartGroupBox1.InitVisible = true; this.groupBoxButton.Name = "groupBoxButton";
this.smartGroupBox1.Location = new System.Drawing.Point(13, 569); this.groupBoxButton.RoundRadius = 5;
this.smartGroupBox1.Name = "smartGroupBox1"; this.groupBoxButton.Size = new System.Drawing.Size(562, 196);
this.smartGroupBox1.RoundRadius = 5; this.groupBoxButton.TabIndex = 6;
this.smartGroupBox1.Size = new System.Drawing.Size(562, 181); this.groupBoxButton.TextColor = System.Drawing.Color.Black;
this.smartGroupBox1.TabIndex = 6;
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
// //
// buttonExtanalCAL // smartLabel3
// //
this.buttonExtanalCAL.BackPictureBox = null; this.smartLabel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.buttonExtanalCAL.BackPictureBox1 = null; this.smartLabel3.BackPictureBox = null;
this.buttonExtanalCAL.BackPictureBox2 = null; this.smartLabel3.BackPictureBox1 = null;
this.buttonExtanalCAL.ButtonColor = System.Drawing.Color.Gainsboro; this.smartLabel3.BackPictureBox2 = null;
this.buttonExtanalCAL.ButtonImageAutoSize = true; this.smartLabel3.BorderColor = System.Drawing.Color.Black;
this.buttonExtanalCAL.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.smartLabel3.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.buttonExtanalCAL.DisableImage = null; this.smartLabel3.Font = new System.Drawing.Font("새굴림", 13F, System.Drawing.FontStyle.Bold);
this.buttonExtanalCAL.DownImage = null; this.smartLabel3.InitVisible = true;
this.buttonExtanalCAL.GroupID = 0; this.smartLabel3.LineSpacing = 0F;
this.buttonExtanalCAL.InitVisible = true; this.smartLabel3.Location = new System.Drawing.Point(103, 145);
this.buttonExtanalCAL.Location = new System.Drawing.Point(234, 36); this.smartLabel3.Name = "smartLabel3";
this.buttonExtanalCAL.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; this.smartLabel3.Size = new System.Drawing.Size(100, 20);
this.buttonExtanalCAL.Name = "buttonExtanalCAL"; this.smartLabel3.TabIndex = 17;
this.buttonExtanalCAL.NestedClickEventPrevent = false; this.smartLabel3.Text = "영점";
this.buttonExtanalCAL.OutlinePixel = 1; this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.buttonExtanalCAL.RepeatInterval = 200; this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.buttonExtanalCAL.RepeatIntervalAccelerate = null; this.smartLabel3.Wordwrap = false;
this.buttonExtanalCAL.SafeInterval = 200;
this.buttonExtanalCAL.Size = new System.Drawing.Size(105, 90);
this.buttonExtanalCAL.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonExtanalCAL.TabIndex = 15;
this.buttonExtanalCAL.Text = "내부 분동 CAL";
this.buttonExtanalCAL.TextColor = System.Drawing.Color.Black;
this.buttonExtanalCAL.TextDownColor = System.Drawing.Color.Black;
this.buttonExtanalCAL.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonExtanalCAL.TextLocation = new System.Drawing.Point(0, 0);
this.buttonExtanalCAL.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonExtanalCAL.UpImage = null;
this.buttonExtanalCAL.Click += new System.EventHandler(this.buttonExtanalCAL_Click);
//
// smartLabel2
//
this.smartLabel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.smartLabel2.BackPictureBox = null;
this.smartLabel2.BackPictureBox1 = null;
this.smartLabel2.BackPictureBox2 = null;
this.smartLabel2.BorderColor = System.Drawing.Color.Black;
this.smartLabel2.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel2.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold);
this.smartLabel2.InitVisible = true;
this.smartLabel2.LineSpacing = 0F;
this.smartLabel2.Location = new System.Drawing.Point(128, 132);
this.smartLabel2.Name = "smartLabel2";
this.smartLabel2.Size = new System.Drawing.Size(100, 20);
this.smartLabel2.TabIndex = 14;
this.smartLabel2.Text = "취소";
this.smartLabel2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.smartLabel2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel2.Wordwrap = false;
//
// smartLabel1
//
this.smartLabel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.smartLabel1.BackPictureBox = null;
this.smartLabel1.BackPictureBox1 = null;
this.smartLabel1.BackPictureBox2 = null;
this.smartLabel1.BorderColor = System.Drawing.Color.Black;
this.smartLabel1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel1.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold);
this.smartLabel1.InitVisible = true;
this.smartLabel1.LineSpacing = 0F;
this.smartLabel1.Location = new System.Drawing.Point(445, 132);
this.smartLabel1.Name = "smartLabel1";
this.smartLabel1.Size = new System.Drawing.Size(100, 20);
this.smartLabel1.TabIndex = 13;
this.smartLabel1.Text = "분동";
this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel1.Visible = false;
this.smartLabel1.Wordwrap = false;
//
// labelWeight1
//
this.labelWeight1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.labelWeight1.BackPictureBox = null;
this.labelWeight1.BackPictureBox1 = null;
this.labelWeight1.BackPictureBox2 = null;
this.labelWeight1.BorderColor = System.Drawing.Color.Black;
this.labelWeight1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelWeight1.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold);
this.labelWeight1.InitVisible = true;
this.labelWeight1.LineSpacing = 0F;
this.labelWeight1.Location = new System.Drawing.Point(22, 132);
this.labelWeight1.Name = "labelWeight1";
this.labelWeight1.Size = new System.Drawing.Size(100, 20);
this.labelWeight1.TabIndex = 12;
this.labelWeight1.Text = "시작";
this.labelWeight1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.labelWeight1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelWeight1.Wordwrap = false;
// //
// buttonZero // buttonZero
// //
@ -391,11 +282,11 @@
this.buttonZero.ButtonColor = System.Drawing.Color.Gainsboro; this.buttonZero.ButtonColor = System.Drawing.Color.Gainsboro;
this.buttonZero.ButtonImageAutoSize = true; this.buttonZero.ButtonImageAutoSize = true;
this.buttonZero.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonZero.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonZero.DisableImage = null; this.buttonZero.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonZero.DisableImage")));
this.buttonZero.DownImage = null; this.buttonZero.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonZero.DownImage")));
this.buttonZero.GroupID = 0; this.buttonZero.GroupID = 0;
this.buttonZero.InitVisible = true; this.buttonZero.InitVisible = true;
this.buttonZero.Location = new System.Drawing.Point(345, 36); this.buttonZero.Location = new System.Drawing.Point(103, 49);
this.buttonZero.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonZero.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonZero.Name = "buttonZero"; this.buttonZero.Name = "buttonZero";
this.buttonZero.NestedClickEventPrevent = false; this.buttonZero.NestedClickEventPrevent = false;
@ -403,25 +294,96 @@
this.buttonZero.RepeatInterval = 200; this.buttonZero.RepeatInterval = 200;
this.buttonZero.RepeatIntervalAccelerate = null; this.buttonZero.RepeatIntervalAccelerate = null;
this.buttonZero.SafeInterval = 200; this.buttonZero.SafeInterval = 200;
this.buttonZero.Size = new System.Drawing.Size(94, 90); this.buttonZero.Size = new System.Drawing.Size(100, 90);
this.buttonZero.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.buttonZero.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonZero.TabIndex = 16; this.buttonZero.TabIndex = 16;
this.buttonZero.Text = "영점";
this.buttonZero.TextColor = System.Drawing.Color.Black; this.buttonZero.TextColor = System.Drawing.Color.Black;
this.buttonZero.TextDownColor = System.Drawing.Color.Black; this.buttonZero.TextDownColor = System.Drawing.Color.Black;
this.buttonZero.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; this.buttonZero.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonZero.TextLocation = new System.Drawing.Point(0, 0); this.buttonZero.TextLocation = new System.Drawing.Point(0, 0);
this.buttonZero.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.buttonZero.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonZero.UpImage = null; this.buttonZero.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonZero.UpImage")));
this.buttonZero.Click += new System.EventHandler(this.buttonZero_Click); this.buttonZero.Click += new System.EventHandler(this.buttonZero_Click);
// //
// smartLabel2
//
this.smartLabel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.smartLabel2.BackPictureBox = null;
this.smartLabel2.BackPictureBox1 = null;
this.smartLabel2.BackPictureBox2 = null;
this.smartLabel2.BorderColor = System.Drawing.Color.Black;
this.smartLabel2.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel2.Font = new System.Drawing.Font("새굴림", 13F, System.Drawing.FontStyle.Bold);
this.smartLabel2.InitVisible = true;
this.smartLabel2.LineSpacing = 0F;
this.smartLabel2.Location = new System.Drawing.Point(363, 145);
this.smartLabel2.Name = "smartLabel2";
this.smartLabel2.Size = new System.Drawing.Size(100, 20);
this.smartLabel2.TabIndex = 14;
this.smartLabel2.Text = "취소";
this.smartLabel2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.smartLabel2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel2.Wordwrap = false;
//
// labelWeight1
//
this.labelWeight1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(150)))), ((int)(((byte)(151)))));
this.labelWeight1.BackPictureBox = null;
this.labelWeight1.BackPictureBox1 = null;
this.labelWeight1.BackPictureBox2 = null;
this.labelWeight1.BorderColor = System.Drawing.Color.Black;
this.labelWeight1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelWeight1.Font = new System.Drawing.Font("새굴림", 13F, System.Drawing.FontStyle.Bold);
this.labelWeight1.InitVisible = true;
this.labelWeight1.LineSpacing = 0F;
this.labelWeight1.Location = new System.Drawing.Point(233, 145);
this.labelWeight1.Name = "labelWeight1";
this.labelWeight1.Size = new System.Drawing.Size(100, 20);
this.labelWeight1.TabIndex = 12;
this.labelWeight1.Text = "시작";
this.labelWeight1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
this.labelWeight1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelWeight1.Wordwrap = false;
//
// buttonExtanalCAL
//
this.buttonExtanalCAL.BackPictureBox = null;
this.buttonExtanalCAL.BackPictureBox1 = null;
this.buttonExtanalCAL.BackPictureBox2 = null;
this.buttonExtanalCAL.ButtonColor = System.Drawing.Color.Gainsboro;
this.buttonExtanalCAL.ButtonImageAutoSize = true;
this.buttonExtanalCAL.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonExtanalCAL.DisableImage = ((System.Drawing.Image)(resources.GetObject("buttonExtanalCAL.DisableImage")));
this.buttonExtanalCAL.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonExtanalCAL.DownImage")));
this.buttonExtanalCAL.GroupID = 0;
this.buttonExtanalCAL.InitVisible = true;
this.buttonExtanalCAL.Location = new System.Drawing.Point(924, 573);
this.buttonExtanalCAL.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonExtanalCAL.Name = "buttonExtanalCAL";
this.buttonExtanalCAL.NestedClickEventPrevent = false;
this.buttonExtanalCAL.OutlinePixel = 1;
this.buttonExtanalCAL.RepeatInterval = 200;
this.buttonExtanalCAL.RepeatIntervalAccelerate = null;
this.buttonExtanalCAL.SafeInterval = 200;
this.buttonExtanalCAL.Size = new System.Drawing.Size(84, 87);
this.buttonExtanalCAL.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonExtanalCAL.TabIndex = 15;
this.buttonExtanalCAL.TextColor = System.Drawing.Color.Black;
this.buttonExtanalCAL.TextDownColor = System.Drawing.Color.Black;
this.buttonExtanalCAL.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonExtanalCAL.TextLocation = new System.Drawing.Point(0, 0);
this.buttonExtanalCAL.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonExtanalCAL.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonExtanalCAL.UpImage")));
this.buttonExtanalCAL.Click += new System.EventHandler(this.buttonExtanalCAL_Click);
//
// FormCalibration // FormCalibration
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true; this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1024, 768); this.ClientSize = new System.Drawing.Size(1024, 768);
this.Controls.Add(this.smartGroupBox1); this.Controls.Add(this.groupBoxButton);
this.Controls.Add(this.buttonExtanalCAL);
this.Controls.Add(this.labelTitle); this.Controls.Add(this.labelTitle);
this.Controls.Add(this.groupBoxHelp); this.Controls.Add(this.groupBoxHelp);
this.Controls.Add(this.buttonBack); this.Controls.Add(this.buttonBack);
@ -430,7 +392,7 @@
this.Text = "FormCalibration"; this.Text = "FormCalibration";
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.smartForm1)).EndInit();
this.groupBoxHelp.ResumeLayout(false); this.groupBoxHelp.ResumeLayout(false);
this.smartGroupBox1.ResumeLayout(false); this.groupBoxButton.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@ -442,14 +404,13 @@
private SmartX.SmartGroupBox groupBoxHelp; private SmartX.SmartGroupBox groupBoxHelp;
private SmartX.SmartLabel labelTitle; private SmartX.SmartLabel labelTitle;
private SmartX.SmartButton buttonCancel; private SmartX.SmartButton buttonCancel;
private SmartX.SmartButton buttonBalance;
private SmartX.SmartButton buttonStart; private SmartX.SmartButton buttonStart;
private SmartX.SmartListBox listBoxHelp; private SmartX.SmartListBox listBoxHelp;
private SmartX.SmartGroupBox smartGroupBox1; private SmartX.SmartGroupBox groupBoxButton;
private SmartX.SmartLabel labelWeight1; private SmartX.SmartLabel labelWeight1;
private SmartX.SmartLabel smartLabel2; private SmartX.SmartLabel smartLabel2;
private SmartX.SmartLabel smartLabel1;
private SmartX.SmartButton buttonExtanalCAL; private SmartX.SmartButton buttonExtanalCAL;
private SmartX.SmartButton buttonZero; private SmartX.SmartButton buttonZero;
private SmartX.SmartLabel smartLabel3;
} }
} }

View File

@ -19,7 +19,7 @@ namespace INT63DC_6CH.Forms
#region Field #region Field
private FormMain m_ParentForm; private FormMain m_ParentForm;
public bool IsInternalBalanceMode; public bool IsBasicMode;
private ControlCalibration6 Calibration6; private ControlCalibration6 Calibration6;
private ControlCalibration7 Calibration7; private ControlCalibration7 Calibration7;
@ -58,7 +58,7 @@ namespace INT63DC_6CH.Forms
#region English #region English
this.labelTitle.Text = "Calibration"; this.labelTitle.Text = "Calibration";
this.buttonStart.Text = "Start"; this.buttonStart.Text = "Start";
this.buttonBalance.Text = "Balance"; //this.buttonBalance.Text = "Balance";
this.buttonCancel.Text = "Cancel"; this.buttonCancel.Text = "Cancel";
this.groupBoxHelp.Text = "Help"; this.groupBoxHelp.Text = "Help";
@ -71,7 +71,7 @@ namespace INT63DC_6CH.Forms
#region Chinese #region Chinese
this.labelTitle.Text = "校准"; this.labelTitle.Text = "校准";
this.buttonStart.Text = "开启"; this.buttonStart.Text = "开启";
this.buttonBalance.Text = "分銅"; //this.buttonBalance.Text = "分銅";
this.buttonCancel.Text = "取消"; this.buttonCancel.Text = "取消";
this.groupBoxHelp.Text = "帮助"; this.groupBoxHelp.Text = "帮助";
@ -82,9 +82,9 @@ namespace INT63DC_6CH.Forms
this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDisable)); this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDisable));
this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDown)); this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDown));
this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartUp)); this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartUp));
this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDisable)); //this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDisable));
this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDown)); //this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDown));
this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceUp)); //this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceUp));
this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDisable)); this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDisable));
this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDown)); this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDown));
this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelUp)); this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelUp));
@ -94,7 +94,7 @@ namespace INT63DC_6CH.Forms
#region Czech #region Czech
this.labelTitle.Text = "Kalibrace"; this.labelTitle.Text = "Kalibrace";
this.buttonStart.Text = "Start"; this.buttonStart.Text = "Start";
this.buttonBalance.Text = "Váha"; //this.buttonBalance.Text = "Váha";
this.buttonCancel.Text = "Zrušit"; this.buttonCancel.Text = "Zrušit";
this.groupBoxHelp.Text = "Pomoc"; this.groupBoxHelp.Text = "Pomoc";
@ -107,7 +107,7 @@ namespace INT63DC_6CH.Forms
#region German #region German
this.labelTitle.Text = "Kalibrierung"; this.labelTitle.Text = "Kalibrierung";
this.buttonStart.Text = "Start"; this.buttonStart.Text = "Start";
this.buttonBalance.Text = "Gegengewicht"; //this.buttonBalance.Text = "Gegengewicht";
this.buttonCancel.Text = "Stornieren"; this.buttonCancel.Text = "Stornieren";
this.groupBoxHelp.Text = "Hilfe"; this.groupBoxHelp.Text = "Hilfe";
@ -120,7 +120,7 @@ namespace INT63DC_6CH.Forms
#region Japanese #region Japanese
this.labelTitle.Text = "校正"; this.labelTitle.Text = "校正";
this.buttonStart.Text = "スタㅡト"; this.buttonStart.Text = "スタㅡト";
this.buttonBalance.Text = "バランス"; //this.buttonBalance.Text = "バランス";
this.buttonCancel.Text = "キャンセル"; this.buttonCancel.Text = "キャンセル";
this.groupBoxHelp.Text = "ヘルプ"; this.groupBoxHelp.Text = "ヘルプ";
@ -135,7 +135,7 @@ namespace INT63DC_6CH.Forms
} }
private void InitializeControl() private void InitializeControl()
{ {
this.IsInternalBalanceMode = false; this.IsBasicMode = true;
this.buttonExtanalCAL.ButtonUp(); this.buttonExtanalCAL.ButtonUp();
switch (this.ParentForm.SystemConfig.EquipmentColumns) switch (this.ParentForm.SystemConfig.EquipmentColumns)
@ -430,8 +430,8 @@ namespace INT63DC_6CH.Forms
{ {
if (this.buttonStart.Enabled != btStart) if (this.buttonStart.Enabled != btStart)
this.buttonStart.Enabled = btStart; this.buttonStart.Enabled = btStart;
if (this.buttonBalance.Enabled != btBalance) //if (this.buttonBalance.Enabled != btBalance)
this.buttonBalance.Enabled = btBalance; // this.buttonBalance.Enabled = btBalance;
if (this.buttonCancel.Enabled != btCcancel) if (this.buttonCancel.Enabled != btCcancel)
this.buttonCancel.Enabled = btCcancel; this.buttonCancel.Enabled = btCcancel;
} }
@ -465,8 +465,7 @@ namespace INT63DC_6CH.Forms
this.ParentForm.TransferData(CommunicationCommand.ModeCalibration, CommunicationID.MainBoard); this.ParentForm.TransferData(CommunicationCommand.ModeCalibration, CommunicationID.MainBoard);
this.buttonExtanalCAL.ButtonUp(); this.buttonExtanalCAL.ButtonUp();
this.buttonExtanalCAL.Text = "내부 분동 CAL"; this.IsBasicMode = true;
this.IsInternalBalanceMode = true;
switch (this.ParentForm.SystemConfig.EquipmentColumns) switch (this.ParentForm.SystemConfig.EquipmentColumns)
{ {
@ -515,19 +514,19 @@ namespace INT63DC_6CH.Forms
switch (this.ParentForm.SystemConfig.EquipmentColumns) switch (this.ParentForm.SystemConfig.EquipmentColumns)
{ {
case 6: case 6:
this.Calibration6.CalibrationStart(this.IsInternalBalanceMode); this.Calibration6.CalibrationStart(this.IsBasicMode);
break; break;
case 7: case 7:
this.Calibration7.CalibrationStart(this.IsInternalBalanceMode); this.Calibration7.CalibrationStart(this.IsBasicMode);
break; break;
case 8: case 8:
this.Calibration8.CalibrationStart(this.IsInternalBalanceMode); this.Calibration8.CalibrationStart(this.IsBasicMode);
break; break;
case 10: case 10:
this.Calibration10.CalibrationStart(this.IsInternalBalanceMode); this.Calibration10.CalibrationStart(this.IsBasicMode);
break; break;
case 12: case 12:
this.Calibration12.CalibrationStart(this.IsInternalBalanceMode); this.Calibration12.CalibrationStart(this.IsBasicMode);
break; break;
default: default:
break; break;
@ -609,13 +608,13 @@ namespace INT63DC_6CH.Forms
{ {
if (this.buttonExtanalCAL.ButtonStatus == SmartX.SmartButton.BUTSTATUS.DOWN) if (this.buttonExtanalCAL.ButtonStatus == SmartX.SmartButton.BUTSTATUS.DOWN)
{ {
this.buttonExtanalCAL.Text = "외부 분동 CAL"; this.IsBasicMode = false;
this.IsInternalBalanceMode = false; this.groupBoxButton.Text = "교정모드";
} }
else else
{ {
this.buttonExtanalCAL.Text = "내부 분동 CAL"; this.IsBasicMode = true;
this.IsInternalBalanceMode = true; this.groupBoxButton.Text = "";
} }
} }
private void buttonZero_Click(object sender, EventArgs e) private void buttonZero_Click(object sender, EventArgs e)

File diff suppressed because it is too large Load Diff