private void LoadErrorGroup() { int i = 0; chklistErrorGroup.Items.Clear(); SystemSettingFacade systemSettingFacade = new SystemSettingFacade(this.DataProvider); object[] parameters = systemSettingFacade.GetAllParametersOrderBySequence("TS_COMPONENT"); if (parameters == null || parameters.Length == 0) { return; } errorGroupCode = new string[parameters.Length]; if (parameters != null && parameters.Length > 0) { foreach (Parameter para in parameters) { chklistErrorGroup.Items.Add(para.ParameterAlias); errorGroupCode[i] = para.ParameterCode; i++; } } if (TSEditInfo.ErrGroup != null || TSEditInfo.ErrGroup != String.Empty) { string[] errorGroup = TSEditInfo.ErrGroup.Split(new Char[] { ',' }); for (int j = 0; j < errorGroup.Length; j++) { for (int l = 0; l < chklistErrorGroup.Items.Count; l++) { if (string.Compare(errorGroup[j], chklistErrorGroup.Items[l].ToString(), true) == 0) { chklistErrorGroup.SetItemChecked(l, true); } } } } }