/// <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; } }