private void LoadClass() { try { HPS.BLL.ClassBLL.BLLClass_TFactory ClassFactory = new HPS.BLL.ClassBLL.BLLClass_TFactory(); DataTable ClassDataTable = new DataTable(); ClassFactory.GetAll(ref ClassDataTable); this.ClassGridView.DataSource = ClassDataTable; } catch (System.Exception ex) { throw ex; } }
private void FillCombo() { try { HPS.BLL.ClassBLL.BLLClass_TFactory ClassID_intFactory = new HPS.BLL.ClassBLL.BLLClass_TFactory(); DataTable ClassID_intDataTable = new DataTable(); ClassID_intFactory.GetAll(ref ClassID_intDataTable); this.ClassID_intComboBox.DisplayMember = HPS.BLL.ClassBLL.BLLClass_T.Class_TField.ClassName_nvc.ToString(); this.ClassID_intComboBox.ValueMember = HPS.BLL.ClassBLL.BLLClass_T.Class_TField.ClassID_int.ToString(); this.ClassID_intComboBox.DataSource = ClassID_intDataTable; this.ClassID_intComboBox.SelectedIndex = -1; } catch (Exception ex) { throw ex; } }