private void them(object sender, EventArgs e) { frmThemDonViTinh thh = new frmThemDonViTinh(); thh.ShowDialog(); LoadData(); }
private void sua(object sender, EventArgs e) { DonVi dv = new DonVi() { Ma = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Mã").ToString(), Ten = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Tên").ToString(), GhiChu = gvDonVi.GetRowCellValue(gvDonVi.FocusedRowHandle, "Ghi Chú").ToString() }; frmThemDonViTinh thh = new frmThemDonViTinh(dv); thh.ShowDialog(); LoadData(); }