private void cboCondition_SelectedIndexChanged(object sender, EventArgs e) { cboArg1.Visible = true; txtiArg1Edit.Visible = false; txtiArgName.Visible = false; btnSelBtn.Visible = false; btnSelBtn2.Visible = false; txtiAgr2Name.Visible = false; string condition = cboCondition.SelectedValue.ToString(); string key = ""; switch (condition) { case "3": key = "JBG"; break; case "4": key = "ZS"; break; case "5": key = "SHJN"; break; case "6": key = "JY"; break; case "2": case "7": case "8": case "9": case "10": case "11": case "13": if (condition == "7") { btnSelBtn2.Visible = true; txtiAgr2Name.Visible = true; } if (condition == "2" || condition == "7" || condition == "11") { txtiArgName.Visible = true; btnSelBtn.Visible = true; } cboArg1.Visible = false; txtiArg1Edit.Visible = true; break; } if (!string.IsNullOrEmpty(key)) { Dictionary <string, string> dic = DataHelper.ExplainConfig[key]; _tl.BinderComboBox(cboArg1, dic); } }