Esempio n. 1
0
        private void initLang()
        {
            this.label1.Text    = LangPack.GetOption();
            this.DBTP.Text      = LangPack.GetDB();
            this.TcpTP.Text     = LangPack.GetTCP1();
            this.TcpTP1.Text    = LangPack.GetTCP2();
            this.LogTP.Text     = LangPack.GetLog();
            this.tabPage1.Text  = LangPack.GetBuzzer();
            this.OKBtn.Text     = LangPack.GetClose();
            this.CancleBtn.Text = LangPack.Getcancel();
            this.SaveBtn.Text   = LangPack.GetSave();

            this.DbIPLB.Text    = LangPack.GetDBIP();
            this.DbSidLB.Text   = LangPack.GetDBSID();
            this.DbIdLB.Text    = LangPack.GetDBID();
            this.DbPwLB.Text    = LangPack.GetDBPW();
            this.DbTestBtn.Text = LangPack.GetDBTest();
            this.Oracle8CB.Text = LangPack.Get8IDUSE();
            this.DbLB.Text      = LangPack.GetDBConnSet();

            this.TcpIpLB.Text     = LangPack.GetTCPIP();
            this.TcpPortLB.Text   = LangPack.GetTCPPORT();
            this.TcpConBtn.Text   = LangPack.GetTCPConnect();
            this.TcpCloseBtn.Text = LangPack.GetTCPClose();
            this.TcpLB.Text       = LangPack.GetOperationManagementTCPSetting();

            this.TcpIpLB1.Text     = LangPack.GetTCPIP();
            this.TcpPortLB1.Text   = LangPack.GetTCPPORT();
            this.TcpConBtn1.Text   = LangPack.GetTCPConnect();
            this.TcpCloseBtn1.Text = LangPack.GetTCPClose();
            this.TcpLB1.Text       = LangPack.GetControlPanelTCPSetting();

            this.LogCB.Text = LangPack.GetLogView();
            this.LogLB.Text = LangPack.GetTheLogwillscreen() + "\n" + LangPack.GetCanslowprogram();

            this.labelEx1.Text  = LangPack.GetBroadCastBuzzerSet();
            this.checkBox1.Text = LangPack.GetReal();
            this.checkBox2.Text = LangPack.GetDrill();
            this.checkBox3.Text = LangPack.GetTest();
        }
Esempio n. 2
0
        /// <summary>
        /// init 메소드
        /// </summary>
        /// <param name="_p24"></param>
        public void setInit(PrtCmd24 _p24)
        {
            this.p24         = _p24;
            this.label5.Text = (_p24.DisMode == 0) ? LangPack.GetTest() : (_p24.DisMode == 1) ? LangPack.GetReal() : LangPack.GetDrill();
            this.label6.Text = (_p24.DisValue * 0.01).ToString();

            if (Util.autoInfo.intensity < (_p24.DisValue * 0.01)) //high
            {
                this.label12.Text = (Util.autoInfo.highCBSUse == true) ? LangPack.GetUse() : LangPack.GetNonuse();
                this.label11.Text = Util.autoInfo.highMsg;

                if (Util.autoInfo.highAuto)
                {
                    this.label13.Text   = "0";
                    tmpTime             = 0;
                    this.label4.Text    = LangPack.GetAuto();
                    this.btnCancel.Text = LangPack.GetClear();
                }
                else
                {
                    this.label13.Text = Util.autoInfo.highTime.ToString();
                    tmpTime           = Util.autoInfo.highTime;
                    this.label4.Text  = LangPack.GetManual();
                }
            }
            else //low
            {
                this.label12.Text = (Util.autoInfo.lowCBSUse == true) ? LangPack.GetUse() : LangPack.GetNonuse();
                this.label11.Text = Util.autoInfo.lowMsg;

                if (Util.autoInfo.lowAuto)
                {
                    this.label13.Text   = "0";
                    tmpTime             = 0;
                    this.label4.Text    = LangPack.GetAuto();
                    this.btnCancel.Text = LangPack.GetClear();
                }
                else
                {
                    this.label13.Text = Util.autoInfo.lowTime.ToString();
                    tmpTime           = Util.autoInfo.lowTime;
                    this.label4.Text  = LangPack.GetManual();
                }
            }

            if (tmpTime != 0)
            {
                this.timeTD = new Thread(timeTDMethod);
                this.timeTD.IsBackground = true;
                this.timeTD.Start();
            }

            if (this.label4.Text == LangPack.GetAuto())
            {
                this.btnImd.Enabled = false;
                this.btnImd.Visible = false;
            }
            else
            {
                this.btnImd.Enabled = true;
            }
        }