Exemple #1
0
        /// <summary>
        /// Setting language resource.
        /// </summary>
        /// <param name="Lang">current language setting.</param>
        private void Language(Customization.Language Lang)
        {
            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:
                // About Form ..
                this.Text = string.Format(EnvCust.GetLocalization(this.Name,
                                                                  this.Name, Customization.Language.En_Us) + " {0}", AssemblyInfoClass.ProductInfo);

                // Product Label ..
                this.Label_ProductName.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_ProductName.Name,
                                            Customization.Language.En_Us) + " {0}", AssemblyInfoClass.ProductInfo);

                // Version Label ..
                this.Label_Version.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_Version.Name,
                                            Customization.Language.En_Us) + " {0}", AssemblyInfoClass.VersionInfo);

                // Copyright Label ..
                this.Label_Copyright.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_Copyright.Name,
                                            Customization.Language.En_Us) + " {0}", AssemblyInfoClass.CopyrightInfo);

                // Link Label ..
                this.LinkLabel_Help.Text = EnvCust.GetLocalization(this.Name,
                                                                   this.LinkLabel_Help.Name, Customization.Language.En_Us);
                break;
                #endregion

                #region Traditional Chinese
            case Customization.Language.Zh_Tw:
                // About Form ..
                this.Text = string.Format(EnvCust.GetLocalization(this.Name,
                                                                  this.Name, Customization.Language.Zh_Tw) + " {0}", AssemblyInfoClass.ProductInfo);

                // Product Label ..
                this.Label_ProductName.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_ProductName.Name,
                                            Customization.Language.Zh_Tw) + " {0}", AssemblyInfoClass.ProductInfo);

                // Version Label ..
                this.Label_Version.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_Version.Name,
                                            Customization.Language.Zh_Tw) + " {0}", AssemblyInfoClass.VersionInfo);

                // Copyright Label ..
                this.Label_Copyright.Text = String.Format(
                    EnvCust.GetLocalization(this.Name, this.Label_Copyright.Name,
                                            Customization.Language.Zh_Tw) + " {0}", AssemblyInfoClass.CopyrightInfo);

                // Link Label ..
                this.LinkLabel_Help.Text = EnvCust.GetLocalization(this.Name,
                                                                   this.LinkLabel_Help.Name, Customization.Language.Zh_Tw);
                break;
                #endregion
            }
        }
        /// <summary>
        /// Setting language resource.
        /// </summary>
        private void Language(Customization.Language Lang)
        {
            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:
                // Console Form ..
                this.Text = EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.En_Us);

                // Output GroupBox ..
                this.GroupBox_Output.Text = EnvCust.GetLocalization(this.Name, this.GroupBox_Output.Name, Customization.Language.En_Us);

                // Pause Button ..
                this.Button_Pause.Text = EnvCust.GetLocalization(this.Name, this.Button_Pause.Name, Customization.Language.En_Us);

                // Resume Text Message ..
                ResumeMessage = this.EnvCust.GetLocalization(this.Name, this.Button_Pause.Name + "_Resume", Customization.Language.En_Us);
                break;
                #endregion

                #region Traditional Chinese
            case Customization.Language.Zh_Tw:
                // Console Form ..
                this.Text = EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.Zh_Tw);

                // Output GroupBox ..
                this.GroupBox_Output.Text = EnvCust.GetLocalization(this.Name, this.GroupBox_Output.Name, Customization.Language.Zh_Tw);

                // Pause Button ..
                this.Button_Pause.Text = EnvCust.GetLocalization(this.Name, this.Button_Pause.Name, Customization.Language.Zh_Tw);

                // Resume Text Message ..
                ResumeMessage = this.EnvCust.GetLocalization(this.Name, this.Button_Pause.Name + "_Resume", Customization.Language.Zh_Tw);
                break;
                #endregion
            }
        }
Exemple #3
0
        /// <summary>
        /// Setting language resource.????????????!!!!!!!!!????????
        /// </summary>
        /// <param name="Lang">current language setting.</param>
        private void Language(Customization.Language Lang)
        {
            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:


                // Net Form ..
                this.Text = EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.En_Us);

                // Port Label ..
                this.Label_Port.Text = EnvCust.GetLocalization(this.Name, this.Label_Port.Name, Customization.Language.En_Us);

                // Port Help Port Label ..
                this.Label_Port_Help.Text = EnvCust.GetLocalization(this.Name, this.Label_Port_Help.Name, Customization.Language.En_Us);

                // Server Label ..
                this.Label_Server.Text = EnvCust.GetLocalization(this.Name, this.Label_Server.Name, Customization.Language.En_Us);

                // Server Message String TextBox ..
                this.ConnectErrMsg = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_Error1_String", Customization.Language.En_Us);
                this.ParseErrMsg   = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_Error2_String", Customization.Language.En_Us);
                this.ConnectOkMsg  = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_String", Customization.Language.En_Us);

                // Server Help Label ..
                this.Label_Server_Help.Text = EnvCust.GetLocalization(this.Name, this.Label_Server_Help.Name, Customization.Language.En_Us);

                // Connect Label ..
                this.Label_Connect.Text = EnvCust.GetLocalization(this.Name, this.Label_Connect.Name, Customization.Language.En_Us);

                // Test Connect Button ..
                this.Button_AU.Text     = EnvCust.GetLocalization(this.Name, this.Button_AU.Name, Customization.Language.En_Us);
                this.Button_Delete.Text = EnvCust.GetLocalization(this.Name, this.Button_Delete.Name, Customization.Language.En_Us);
                this.Button_Save.Text   = EnvCust.GetLocalization(this.Name, this.Button_Save.Name, Customization.Language.En_Us);
                break;
                #endregion

                #region Traditional Chinese
            case Customization.Language.Zh_Tw:
                // Net Form ..
                this.Text = EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.Zh_Tw);

                // Port Label ..
                this.Label_Port.Text = EnvCust.GetLocalization(this.Name, this.Label_Port.Name, Customization.Language.Zh_Tw);

                // Port Help Port Label ..
                this.Label_Port_Help.Text = EnvCust.GetLocalization(this.Name, this.Label_Port_Help.Name, Customization.Language.Zh_Tw);

                // Server Label ..
                this.Label_Server.Text = EnvCust.GetLocalization(this.Name, this.Label_Server.Name, Customization.Language.Zh_Tw);

                // Server Message String TextBox ..
                this.ConnectErrMsg = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_Error1_String", Customization.Language.Zh_Tw);
                this.ParseErrMsg   = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_Error2_String", Customization.Language.Zh_Tw);
                this.ConnectOkMsg  = EnvCust.GetLocalization(this.Name, this.comboBox_Server.Name + "_String", Customization.Language.Zh_Tw);

                // Server Help Label ..
                this.Label_Server_Help.Text = EnvCust.GetLocalization(this.Name, this.Label_Server_Help.Name, Customization.Language.Zh_Tw);

                // Connect Label ..
                this.Label_Connect.Text = EnvCust.GetLocalization(this.Name, this.Label_Connect.Name, Customization.Language.Zh_Tw);

                // Test Connect Button ..
                this.Button_AU.Text     = EnvCust.GetLocalization(this.Name, this.Button_AU.Name, Customization.Language.Zh_Tw);
                this.Button_Delete.Text = EnvCust.GetLocalization(this.Name, this.Button_Delete.Name, Customization.Language.Zh_Tw);
                this.Button_Save.Text   = EnvCust.GetLocalization(this.Name, this.Button_Save.Name, Customization.Language.Zh_Tw);


                break;
                #endregion
            }
        }