Example #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
            }
        }
Example #2
0
        /// <summary>
        /// Setting language resource.
        /// </summary>
        private void Language(Customization.Language Lang)
        {
            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:

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

                // List View
                this.ListView_History.Columns.Clear();
#if Debug
                this.ListView_Process.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_Process.Name + "_Job_Group_Id", Customization.Language.En_Us), 0);
#else
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Job_Group_Id", Customization.Language.En_Us), 0);
#endif
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Name", Customization.Language.En_Us), 200);
                //this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Submit_Acct", Customization.Language.En_Us), 100);
                //this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Submit_Time", Customization.Language.En_Us), 150);
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Frames", Customization.Language.En_Us), 100);

                // Button
                this.Button_Refresh.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Refresh.Name, Customization.Language.En_Us);
                this.Button_Close.Text   = this.EnvCust.GetLocalization(this.Name, this.Button_Close.Name, Customization.Language.En_Us);
                // Lables
                this.label_MaxRecords.Text = this.EnvCust.GetLocalization(this.Name, this.label_MaxRecords.Name, Customization.Language.En_Us);

                this.DataDeletedError = this.EnvCust.GetLocalization(this.Name, "Data_Deleted_Err", Customization.Language.En_Us);
                // ToolStripMenuItem
                //this.MenuItem_ViewJobDetail.Text = this.EnvCust.GetLocalization(this.Name, this.MenuItem_ViewJobDetail.Name, Customization.Language.En_Us);
                break;
                #endregion

                #region Traditional Chinese
            case Customization.Language.Zh_Tw:
                this.Text = this.EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.Zh_Tw);
                // List View
                this.ListView_History.Columns.Clear();
#if Debug
                this.ListView_Process.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_Process.Name + "_Job_Group_Id", Customization.Language.Zh_Tw), 0);
#else
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Job_Group_Id", Customization.Language.Zh_Tw), 0);
#endif
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Name", Customization.Language.Zh_Tw), 200);
                this.ListView_History.Columns.Add(this.EnvCust.GetLocalization(this.Name, this.ListView_History.Name + "_Frames", Customization.Language.Zh_Tw), 100);

                // Button
                this.Button_Refresh.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Refresh.Name, Customization.Language.Zh_Tw);
                this.Button_Close.Text   = this.EnvCust.GetLocalization(this.Name, this.Button_Close.Name, Customization.Language.Zh_Tw);
                // Lables
                this.label_MaxRecords.Text = this.EnvCust.GetLocalization(this.Name, this.label_MaxRecords.Name, Customization.Language.Zh_Tw);

                this.DataDeletedError = this.EnvCust.GetLocalization(this.Name, "Data_Deleted_Err", Customization.Language.Zh_Tw);

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

                // User Group Box ..
                this.GroupBox_User.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_User.Name, Customization.Language.En_Us);

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

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

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

                // Success Changed String ..
                SuccessMessage = this.EnvCust.GetLocalization(this.Name, "Success_String", Customization.Language.En_Us);

                // Fail Changed String ..
                FailMessage = this.EnvCust.GetLocalization(this.Name, "Fail_String", Customization.Language.En_Us);
                break;
                #endregion

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

                // User Group Box ..
                this.GroupBox_User.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_User.Name, Customization.Language.Zh_Tw);

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

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

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

                // Success Changed String ..
                SuccessMessage = this.EnvCust.GetLocalization(this.Name, "Success_String", Customization.Language.Zh_Tw);

                // Fail Changed String ..
                FailMessage = this.EnvCust.GetLocalization(this.Name, "Fail_String", Customization.Language.Zh_Tw);
                break;
                #endregion
            }
        }
Example #4
0
        /// <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
            }
        }
Example #5
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:
                // Priority Form ..
                this.Text = this.EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.En_Us);

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

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

                // Error Message ..
                this.SetFailMessage = this.EnvCust.GetLocalization(this.Name, "Fail_Msg", Customization.Language.En_Us);
                break;
                #endregion

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

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

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

                // Error Message ..
                this.SetFailMessage = this.EnvCust.GetLocalization(this.Name, "Fail_Msg", Customization.Language.Zh_Tw);
                break;
                #endregion
            }
        }
Example #6
0
        /// <summary>
        /// 設定語言 Setting language resource.
        /// </summary>
        private void Language(Customization.Language Lang)
        {
            //警示信息
            string[] __warning = null;

            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:
                // Pool Management Form ..
                this.Text = this.EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.En_Us);

                // Pool Groups GroupBox ..
                this.GroupBox_Pool_Groups.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Pool_Groups.Name, Customization.Language.En_Us);

                // Machine List Label ..
                this.Label_Machine_List.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Machine_List.Name, Customization.Language.En_Us);

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

                // Member List Label ..
                this.Label_Member_List.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Member_List.Name, Customization.Language.En_Us);

                // Sharable CheckBox ..
                this.CheckBox_Sharable.Text = this.EnvCust.GetLocalization(this.Name, this.CheckBox_Sharable.Name, Customization.Language.En_Us);

                // Add Member Button ..
                this.Button_Add_Member.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Member.Name, Customization.Language.En_Us);

                // Del Member Button ..
                this.Button_Del_Member.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Del_Member.Name, Customization.Language.En_Us);

                // Pool Control GroupBox ..
                this.GroupBox_Pool_Controls.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Pool_Controls.Name, Customization.Language.En_Us);

                // Add Pool Button ..
                this.Button_Add_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name, Customization.Language.En_Us);

                // Delete Pool Button ..
                this.Button_Delete_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name, Customization.Language.En_Us);

                // Update Pool Button ..
                this.Button_Update_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name, Customization.Language.En_Us);

                // Get Pool Action Message ..
                this.__AddPool_Repeat_Error = this.EnvCust.GetLocalization(this.Name, this.ComboBox_Pool_Name.Name + "_Repate_Err", Customization.Language.En_Us);
                this.__AddPool_Complete     = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name + "_Complete", Customization.Language.En_Us);
                this.__AddPool_Error        = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name + "_Fail", Customization.Language.En_Us);
                this.__DeletePool_Complete  = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Complete", Customization.Language.En_Us);
                this.__DeletePool_Error     = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Fail", Customization.Language.En_Us);
                this.__UpdatePool_Complete  = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name + "_Complete", Customization.Language.En_Us);
                this.__UpdatePool_Error     = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name + "_Fail", Customization.Language.En_Us);
                this.__Pool_Member_Error    = this.EnvCust.GetLocalization(this.Name, "AddChange_Member_Fail", Customization.Language.En_Us);

                // process delete pool warning string ..
                __warning = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Confirm", Customization.Language.En_Us).Split('-');
                this.__DeletePool_Warning = string.Format("{0}\r\n\n{1}", __warning[0], __warning[1]);
                break;
                #endregion

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

                // Pool Groups GroupBox ..
                this.GroupBox_Pool_Groups.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Pool_Groups.Name, Customization.Language.Zh_Tw);

                // Machine List Label ..
                this.Label_Machine_List.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Machine_List.Name, Customization.Language.Zh_Tw);

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

                // Member List Label ..
                this.Label_Member_List.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Member_List.Name, Customization.Language.Zh_Tw);

                // Sharable CheckBox ..
                this.CheckBox_Sharable.Text = this.EnvCust.GetLocalization(this.Name, this.CheckBox_Sharable.Name, Customization.Language.Zh_Tw);

                // Add Member Button ..
                this.Button_Add_Member.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Member.Name, Customization.Language.Zh_Tw);

                // Del Member Button ..
                this.Button_Del_Member.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Del_Member.Name, Customization.Language.Zh_Tw);

                // Pool Control GroupBox ..
                this.GroupBox_Pool_Controls.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Pool_Controls.Name, Customization.Language.Zh_Tw);

                // Add Pool Button ..
                this.Button_Add_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name, Customization.Language.Zh_Tw);

                // Delete Pool Button ..
                this.Button_Delete_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name, Customization.Language.Zh_Tw);

                // Update Pool Button ..
                this.Button_Update_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name, Customization.Language.Zh_Tw);

                // Get Pool Action Message ..
                this.__AddPool_Repeat_Error = this.EnvCust.GetLocalization(this.Name, this.ComboBox_Pool_Name.Name + "_Repate_Err", Customization.Language.Zh_Tw);
                this.__AddPool_Complete     = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name + "_Complete", Customization.Language.Zh_Tw);
                this.__AddPool_Error        = this.EnvCust.GetLocalization(this.Name, this.Button_Add_Pool.Name + "_Fail", Customization.Language.Zh_Tw);
                this.__DeletePool_Complete  = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Complete", Customization.Language.Zh_Tw);
                this.__DeletePool_Error     = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Fail", Customization.Language.Zh_Tw);
                this.__UpdatePool_Complete  = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name + "_Complete", Customization.Language.Zh_Tw);
                this.__UpdatePool_Error     = this.EnvCust.GetLocalization(this.Name, this.Button_Update_Pool.Name + "_Fail", Customization.Language.Zh_Tw);
                this.__Pool_Member_Error    = this.EnvCust.GetLocalization(this.Name, "AddChange_Member_Fail", Customization.Language.Zh_Tw);

                // process delete pool warning string ..
                __warning = this.EnvCust.GetLocalization(this.Name, this.Button_Delete_Pool.Name + "_Confirm", Customization.Language.Zh_Tw).Split('-');
                this.__DeletePool_Warning = string.Format("{0}\r\n\n{1}", __warning[0], __warning[1]);
                break;
                #endregion
            }
        }
Example #7
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
            }
        }
Example #8
0
        /// <summary>
        /// Setting language resource.
        /// </summary>
        private void Language(Customization.Language Lang)
        {
            switch (Lang)
            {
                #region English (United-State)
            case Customization.Language.En_Us:
                // Job Form ..
                this.Text = this.EnvCust.GetLocalization(this.Name, this.Name, Customization.Language.En_Us);

                // Job Properties GroupBox ..
                this.GroupBox_Job_Properties.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Job_Properties.Name, Customization.Language.En_Us);

                // Job Project Label ..
                this.Label_Job_Project.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Job_Project.Name, Customization.Language.En_Us);

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

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

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

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

                // Packet Size Label ..
                this.Label_Packet_Size.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Packet_Size.Name, Customization.Language.En_Us);

                // Submit Type Label ..
                this.Label_Submit_Type.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Submit_Type.Name, Customization.Language.En_Us);

                // Processor RadioButton ..
                this.RadioButton_Processor.Text = this.EnvCust.GetLocalization(this.Name, this.RadioButton_Processor.Name, Customization.Language.En_Us);

                // Client RadioButton ..
                this.RadioButton_Client.Text = this.EnvCust.GetLocalization(this.Name, this.RadioButton_Client.Name, Customization.Language.En_Us);

                // First Pool Label ..
                this.Label_First_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Label_First_Pool.Name, Customization.Language.En_Us);

                // Second Pool Label ..
                this.Label_Second_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Second_Pool.Name, Customization.Language.En_Us);

                // Wait For Label ..
                this.Label_Wait_For.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Wait_For.Name, Customization.Language.En_Us);

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

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

                // Display Linklabel ..
                this.LinkLabel_Display.Text = this.EnvCust.GetLocalization(this.Name, this.LinkLabel_Display.Name + "_Show", Customization.Language.En_Us);

                // Alienbrain Properties GorupBox ..
                this.GroupBox_AB_Properties.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_AB_Properties.Name, Customization.Language.En_Us);

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

                // Alienbrain Node Path Lable ..
                this.Label_AB_Path.Text = this.EnvCust.GetLocalization(this.Name, this.Label_AB_Path.Name, Customization.Language.En_Us);

                // Update Files Only CheckBox ..
                this.CheckBox_Update_Only.Text = this.EnvCust.GetLocalization(this.Name, this.CheckBox_Update_Only.Name, Customization.Language.En_Us);

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

                // Update Button…
                this.Button_Update.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Update.Name, Customization.Language.En_Us);

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

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

                // Submit Job Error Message String ..
                this.__sendjob_error = this.EnvCust.GetLocalization(this.Name, "Submit_Err", Customization.Language.En_Us);

                // Load Init data Error Message String……
                this.__Init_error = this.EnvCust.GetLocalization(this.Name, "Init_Err", Customization.Language.En_Us);

                // Parse Job File Error Message ..
                this.__parse_error = this.EnvCust.GetLocalization(string.Empty, "Parse_FileFormat_Err", Customization.Language.En_Us);

                // Requirement Error Message ..
                this.__requirement_error = this.EnvCust.GetLocalization(this.Name, "Requirement_Err", Customization.Language.En_Us);

                // Parse Mulit File Error Message ..
                this.__parse_mulit_error = this.EnvCust.GetLocalization(string.Empty, "ParseFile_Multi_Err", Customization.Language.En_Us);

                // Backup File Warning Message ..
                this.__backup_file_warning = this.EnvCust.GetLocalization(this.Name, "Backup_Warning", Customization.Language.En_Us);
                break;
                #endregion

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

                // Job Properties GroupBox ..
                this.GroupBox_Job_Properties.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_Job_Properties.Name, Customization.Language.Zh_Tw);

                // Job Project Label ..
                this.Label_Job_Project.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Job_Project.Name, Customization.Language.Zh_Tw);

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

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

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

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

                // Packet Size Label ..
                this.Label_Packet_Size.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Packet_Size.Name, Customization.Language.Zh_Tw);

                // Submit Type Label ..
                this.Label_Submit_Type.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Submit_Type.Name, Customization.Language.Zh_Tw);

                // Processor RadioButton ..
                this.RadioButton_Processor.Text = this.EnvCust.GetLocalization(this.Name, this.RadioButton_Processor.Name, Customization.Language.Zh_Tw);

                // Client RadioButton ..
                this.RadioButton_Client.Text = this.EnvCust.GetLocalization(this.Name, this.RadioButton_Client.Name, Customization.Language.Zh_Tw);

                // First Pool Label ..
                this.Label_First_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Label_First_Pool.Name, Customization.Language.Zh_Tw);

                // Second Pool Label ..
                this.Label_Second_Pool.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Second_Pool.Name, Customization.Language.Zh_Tw);

                // Wait For Label ..
                this.Label_Wait_For.Text = this.EnvCust.GetLocalization(this.Name, this.Label_Wait_For.Name, Customization.Language.Zh_Tw);

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

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

                // Display Linklabel ..
                this.LinkLabel_Display.Text = this.EnvCust.GetLocalization(this.Name, this.LinkLabel_Display.Name + "_Show", Customization.Language.Zh_Tw);

                // Alienbrain Properties GorupBox ..
                this.GroupBox_AB_Properties.Text = this.EnvCust.GetLocalization(this.Name, this.GroupBox_AB_Properties.Name, Customization.Language.Zh_Tw);

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

                // Alienbrain Node Path Lable ..
                this.Label_AB_Path.Text = this.EnvCust.GetLocalization(this.Name, this.Label_AB_Path.Name, Customization.Language.Zh_Tw);

                // Update Files Only CheckBox ..
                this.CheckBox_Update_Only.Text = this.EnvCust.GetLocalization(this.Name, this.CheckBox_Update_Only.Name, Customization.Language.Zh_Tw);

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

                // Update Button…
                this.Button_Update.Text = this.EnvCust.GetLocalization(this.Name, this.Button_Update.Name, Customization.Language.Zh_Tw);

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

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

                // Submit Job Error Message String ..
                this.__sendjob_error = this.EnvCust.GetLocalization(this.Name, "Submit_Err", Customization.Language.Zh_Tw);

                // Load Init data Error Message String……
                this.__Init_error = this.EnvCust.GetLocalization(this.Name, "Init_Err", Customization.Language.Zh_Tw);

                // Parse Job File Error Message ..
                this.__parse_error = this.EnvCust.GetLocalization(string.Empty, "Parse_FileFormat_Err", Customization.Language.Zh_Tw);

                // Requirement Error Message ..
                this.__requirement_error = this.EnvCust.GetLocalization(this.Name, "Requirement_Err", Customization.Language.Zh_Tw);

                // Parse Mulit File Error Message ..
                this.__parse_mulit_error = this.EnvCust.GetLocalization(string.Empty, "ParseFile_Multi_Err", Customization.Language.Zh_Tw);

                // Backup File Warning Message ..
                this.__backup_file_warning = this.EnvCust.GetLocalization(this.Name, "Backup_Warning", Customization.Language.Zh_Tw);
                break;
                #endregion
            }
        }