private void SetErrorCodeList() { TSModelFacade tsFacade = new TSModelFacade(this.DataProvider); object[] errorCodeGroups = tsFacade.GetErrorCodeGroupByItemCode(txtItem.Value); if (errorCodeGroups != null) { errorCodeSelect.ClearErrorGroup(); errorCodeSelect.ClearSelectedErrorCode(); errorCodeSelect.ClearSelectErrorCode(); errorCodeSelect.AddErrorGroups(errorCodeGroups); } }
private void InitForm() { object[] errorCodeGroups = tsFacade.GetErrorCodeGroupByItemCode(ItemCode); if (errorCodeGroups != null) { errorCodeSelect.ClearErrorGroup(); errorCodeSelect.ClearSelectedErrorCode(); errorCodeSelect.ClearSelectErrorCode(); errorCodeSelect.AddErrorGroups(errorCodeGroups); } if (this.SelectedErrorCode != null) { this.errorCodeSelect.AddSelectedErrorCodes(this.SelectedErrorCode); } }