private int PopulateMaLop() { DataTable dataTable = lopHocService.getAllId(AccountHelper.getAccountId(), AccountHelper.getAccoutPassword()); UIHelper.PopulateComboBoxWithDataTable(dataTable, maLopComboBox); return(0); }
private void PopulateMaLopHocComboBox() { DataTable maLopHocDataTable = lopHocService.getAllId(AccountHelper.getAccountId(), AccountHelper.getAccoutPassword()); foreach (DataRow row in maLopHocDataTable.Rows) { cbMaLopHoc.Items.Add(row["MALOP"].ToString()); } if (cbMaLopHoc.Items.Count > 0) { cbMaLopHoc.SelectedIndex = 0; } }