private void Them_btn_Click(object sender, EventArgs e) { HoSoDTO hs = new HoSoDTO(); hs.noToiDa = int.Parse(tienNo_txt.Text); hs.loai = int.Parse(maLoaiDaiLy_txt.Text); bool kq = hsBus.them_loaiDaiLy(hs); if (kq == true) { MessageBox.Show("Thêm thành công"); } else { MessageBox.Show("Thêm Thất Bại"); } loaiDaiLyGrid.DataSource = hsBus.LoadLoaidaiLy(); }
private void loai_btn_Click(object sender, EventArgs e) { HoSoGrid.DataSource = hsBus.LoadLoaidaiLy(); }
public Rules_LoaiDaiLy() { InitializeComponent(); hsBus = new HoSoBUS(); loaiDaiLyGrid.DataSource = hsBus.LoadLoaidaiLy(); }