public FrmInputCode(ConfigurationStatus.GJDMLH pInput, ConfigurationStatus.PlayBase playInfo, bool pIsAdd, List <int> pIDList = null) { this.InitializeComponent(); List <Control> list = new List <Control> { this, this.Nm_Random }; base.ControlList = list; this.PlayInfo = playInfo; this.IDList = pIDList; this.Nm_ID.Value = pInput.ID; this.Nm_YesAfter.Value = pInput.YesAfter; this.Nm_NoAfter.Value = pInput.NoAfter; this.Txt_Input.Text = pInput.Value; CommFunc.ConvertInputText(this.Txt_Input, this.PlayInfo); this.Nm_ID.Enabled = pIsAdd; this.Text = pIsAdd ? "添加组号" : "修改组号"; this.Text = this.Text + "-" + this.PlayInfo.Play; List <CheckBox> list2 = new List <CheckBox> { this.Ckb_Random, this.Ckb_Clear, this.Ckb_Ok, this.Ckb_Cancel }; base.CheckBoxList = list2; }
private void Ckb_Random_Click(object sender, EventArgs e) { int pCycle = 1; int pCodeCount = Convert.ToInt32(this.Nm_Random.Value); this.Txt_Input.Text = CommFunc.Join(CommFunc.GetRandomByPlay(this.PlayInfo.PlayType, this.PlayInfo.PlayName, "", "", pCycle, pCodeCount), "\r\n"); CommFunc.ConvertInputText(this.Txt_Input, this.PlayInfo); }
public FrmViewValue(string pValue, ConfigurationStatus.PlayBase playInfo) { this.InitializeComponent(); List <Control> list = new List <Control> { this }; base.ControlList = list; this.Txt_Value.Text = pValue; CommFunc.ConvertInputText(this.Txt_Value, playInfo); List <CheckBox> list2 = new List <CheckBox> { this.Ckb_CopyPlan, this.Ckb_Close }; base.CheckBoxList = list2; }
public FrmInputGDQM(ConfigurationStatus.KMTM pInput, ConfigurationStatus.PlayBase playInfo, bool pIsAdd) { this.InitializeComponent(); List <CheckBox> list = new List <CheckBox> { this.Ckb_Type1, this.Ckb_Type2, this.Ckb_Type3, this.Ckb_Type4, this.Ckb_Type5 }; this.TypeList = list; List <Control> list2 = new List <Control> { this }; base.ControlList = list2; List <Label> list3 = new List <Label> { this.Lbl_NumberCount }; base.LabelList = list3; List <Control> list4 = new List <Control> { this }; base.ControlList = list4; if (!pIsAdd) { this.SetCHTypeList(pInput.KMTMTypeList); this.Txt_KCCode.Text = pInput.KMTMCode; this.Txt_Input.Text = pInput.KMTMValue.Replace("|", "\r\n"); CommFunc.ConvertInputText(this.Txt_Input, this.PlayInfo); } this.Text = pIsAdd ? "添加条件" : "修改条件"; this.PlayInfo = playInfo; List <CheckBox> list5 = new List <CheckBox> { this.Ckb_Ok, this.Ckb_Cancel }; base.CheckBoxList = list5; }