From 7221d79541a2a36e4827fd059fbbfc3382d7a727 Mon Sep 17 00:00:00 2001 From: Seonjae Date: Wed, 5 Apr 2023 11:08:36 +0900 Subject: [PATCH] =?UTF-8?q?MainDisplay2=20-=20Language=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EC=8B=9C=EC=8A=A4=ED=85=9C=EC=A0=95=EB=B3=B4=20-?= =?UTF-8?q?=20Language=20=EB=B3=80=EA=B2=BD=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ControlMenuSystemInformation.Designer.cs | 38 +++++++++++++++++++ .../System/ControlMenuSystemInformation.cs | 6 +++ .../DialogForms/DialogFormLogOn.Designer.cs | 4 +- INT_PT002/Forms/FormMainDisplay2.cs | 29 ++++++++++++++ 4 files changed, 75 insertions(+), 2 deletions(-) diff --git a/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs b/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs index 3d75aa1..34559ba 100644 --- a/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs +++ b/INT_PT002/Controls/System/ControlMenuSystemInformation.Designer.cs @@ -71,6 +71,7 @@ this.buttonUpdateDisplay = new SmartX.SmartButton(); this.smartKeyboard1 = new SmartX.SmartKeyboard(); this.timer = new SmartX.SmartTimer(); + this.smartButton1 = new SmartX.SmartButton(); this.smartGroupBox1.SuspendLayout(); this.smartGroupBox4.SuspendLayout(); this.smartGroupBox3.SuspendLayout(); @@ -1183,6 +1184,7 @@ this.smartGroupBox2.BackGround = null; this.smartGroupBox2.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32))))); this.smartGroupBox2.BackImage = null; + this.smartGroupBox2.Controls.Add(this.smartButton1); this.smartGroupBox2.Controls.Add(this.smartLabel3); this.smartGroupBox2.Controls.Add(this.smartLabel4); this.smartGroupBox2.Controls.Add(this.buttonUpdateMainboard); @@ -1612,6 +1614,41 @@ this.timer.TimeFormStringSeparator = ":"; this.timer.Tick += new System.EventHandler(this.timer_Tick); // + // smartButton1 + // + this.smartButton1.BackGround = this.smartGroupBox2; + this.smartButton1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32))))); + this.smartButton1.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartButton1.ButtonDownColor = System.Drawing.Color.SlateGray; + this.smartButton1.ButtonImageAutoSize = true; + this.smartButton1.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; + this.smartButton1.ButtonText = "English"; + this.smartButton1.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.smartButton1.GroupID = 0; + this.smartButton1.ImageDisable = null; + this.smartButton1.ImageDown = null; + this.smartButton1.ImageUp = null; + this.smartButton1.Location = new System.Drawing.Point(644, 49); + this.smartButton1.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.smartButton1.Name = "smartButton1"; + this.smartButton1.NestedClickEventPrevent = false; + this.smartButton1.OutlinePixel = 2; + this.smartButton1.OverlapOptimize = true; + this.smartButton1.RepeatInterval = 200; + this.smartButton1.RepeatIntervalAccelerate = null; + this.smartButton1.RoundSize = 10; + this.smartButton1.SafeInterval = 200; + this.smartButton1.Size = new System.Drawing.Size(84, 24); + this.smartButton1.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.smartButton1.TabIndex = 91; + this.smartButton1.Text = null; + this.smartButton1.TextColor = System.Drawing.Color.White; + this.smartButton1.TextColorDisable = System.Drawing.Color.Gray; + this.smartButton1.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); + this.smartButton1.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.smartButton1.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.smartButton1.Click += new System.EventHandler(this.smartButton1_Click); + // // ControlMenuSystemInformation // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); @@ -1671,5 +1708,6 @@ private SmartX.SmartButton buttonSave; private SmartX.SmartLabel labelCurrentTime; private SmartX.SmartTimer timer; + private SmartX.SmartButton smartButton1; } } diff --git a/INT_PT002/Controls/System/ControlMenuSystemInformation.cs b/INT_PT002/Controls/System/ControlMenuSystemInformation.cs index cdaf249..456962f 100644 --- a/INT_PT002/Controls/System/ControlMenuSystemInformation.cs +++ b/INT_PT002/Controls/System/ControlMenuSystemInformation.cs @@ -384,5 +384,11 @@ namespace INT_PT002.Controls this.ParentForm.ParentForm.ChildFormMainDisplay.UpdateDisplayTime(); } #endregion + + private void smartButton1_Click(object sender, EventArgs e) + { + this.ParentForm.ParentForm.SystemConfig.LANGUAGE = Define.E_LanguageID.English; + this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig); + } } } diff --git a/INT_PT002/DialogForms/DialogFormLogOn.Designer.cs b/INT_PT002/DialogForms/DialogFormLogOn.Designer.cs index 0be444e..4713c5a 100644 --- a/INT_PT002/DialogForms/DialogFormLogOn.Designer.cs +++ b/INT_PT002/DialogForms/DialogFormLogOn.Designer.cs @@ -137,7 +137,7 @@ this.buttonCancel.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); this.buttonCancel.ButtonImageAutoSize = true; this.buttonCancel.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; - this.buttonCancel.ButtonText = "취소"; + this.buttonCancel.ButtonText = "Cancel"; this.buttonCancel.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonCancel.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold); this.buttonCancel.GroupID = 0; @@ -173,7 +173,7 @@ this.buttonLogOn.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); this.buttonLogOn.ButtonImageAutoSize = true; this.buttonLogOn.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; - this.buttonLogOn.ButtonText = "로그인"; + this.buttonLogOn.ButtonText = "Login"; this.buttonLogOn.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonLogOn.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold); this.buttonLogOn.GroupID = 0; diff --git a/INT_PT002/Forms/FormMainDisplay2.cs b/INT_PT002/Forms/FormMainDisplay2.cs index 27ef697..46b6a48 100644 --- a/INT_PT002/Forms/FormMainDisplay2.cs +++ b/INT_PT002/Forms/FormMainDisplay2.cs @@ -60,6 +60,7 @@ namespace INT_PT002.Forms this.DefaultSetting(); this.InitializeData(); + this.InitializeLanguage(); } #endregion @@ -185,6 +186,34 @@ namespace INT_PT002.Forms this.CollectionLabelSbAlarm[i].Visible = false; } } + private void InitializeLanguage() + { + switch (this.ParentForm.SystemConfig.LANGUAGE) + { + case Define.E_LanguageID.Korean: + this.labelProgress0_1.Text = "초기상태"; + this.labelProgress1_1.Text = "제품진입"; + this.labelProgress2_1.Text = "챔버결합"; + this.labelProgress3_1.Text = "진공시작"; + this.labelProgress4_1.Text = "검사 진행중"; + this.labelProgress6_1.Text = "진공파기"; + this.labelProgress7_1.Text = "챔버분리"; + this.labelProgress8_1.Text = "배출"; + break; + case Define.E_LanguageID.English: + this.labelProgress0_1.Text = "Ready"; + this.labelProgress1_1.Text = "Entry"; + this.labelProgress2_1.Text = "Linkage"; + this.labelProgress3_1.Text = "V. Start"; + this.labelProgress4_1.Text = "Measuerment"; + this.labelProgress6_1.Text = "V. Break"; + this.labelProgress7_1.Text = "Separation"; + this.labelProgress8_1.Text = "Release"; + break; + default: + break; + } + } private void labelImageLocation(Define.E_ProcessStatus process) { int gap = 219;