private void FillCombo() { try { HPS.BLL.MessageBLL.BLLMessage_TFactory MessageID_bintFactory = new HPS.BLL.MessageBLL.BLLMessage_TFactory(); DataTable MessageID_bintDataTable = new DataTable(); MessageID_bintFactory.GetAll(ref MessageID_bintDataTable); this.MessageID_bintComboBox.DisplayMember = HPS.BLL.MessageBLL.BLLMessage_T.Message_TField.MessageTitle_nvc.ToString(); this.MessageID_bintComboBox.ValueMember = HPS.BLL.MessageBLL.BLLMessage_T.Message_TField.MessageID_bint.ToString(); this.MessageID_bintComboBox.DataSource = MessageID_bintDataTable; this.MessageID_bintComboBox.SelectedIndex = -1; HPS.BLL.UserGroupBLL.BLLUserGroup_TFactory UserGroupID_intFactory = new HPS.BLL.UserGroupBLL.BLLUserGroup_TFactory(); DataTable UserGroupID_intDataTable = new DataTable(); UserGroupID_intFactory.GetAll(ref UserGroupID_intDataTable); this.UserGroupID_intComboBox.DisplayMember = HPS.BLL.UserGroupBLL.BLLUserGroup_T.UserGroup_TField.UserGroup_nvc.ToString(); this.UserGroupID_intComboBox.ValueMember = HPS.BLL.UserGroupBLL.BLLUserGroup_T.UserGroup_TField.UserGroupID_int.ToString(); this.UserGroupID_intComboBox.DataSource = UserGroupID_intDataTable; this.UserGroupID_intComboBox.SelectedIndex = -1; } catch (Exception ex) { throw ex; } }
private void LoadMessage() { try { HPS.BLL.MessageBLL.BLLMessage_TFactory MessageFactory = new HPS.BLL.MessageBLL.BLLMessage_TFactory(); DataTable MessageDataTable = new DataTable(); MessageFactory.GetAll(ref MessageDataTable); this.MessageGridView.DataSource = MessageDataTable; } catch (System.Exception ex) { throw ex; } }