private void loadThongTin() { balNhanVien = new BANhanVien(); try { if (balNhanVien.LayListNhanVien().Tables[0].Rows.Count != 0) { this.gridControl1.DataSource = balNhanVien.LayListNhanVien().Tables[0]; hienthi(); } } catch (Exception error) { MessageBox.Show(error.Message, "Loi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void LoadNV() { try { if (balNhanVien.LayListNhanVien().Tables[0].Rows.Count != 0) { this.gridControl1.DataSource = balNhanVien.LayListNhanVien().Tables[0]; load(); } } catch (Exception error) { MessageBox.Show(error.Message, "Loi", MessageBoxButtons.OK, MessageBoxIcon.Error); } btnBrowse.Enabled = false; HienThiThongTin(false); HienThiChucNang(true); HienThiHanhDong(false); }