private void btnThem_Click(object sender, EventArgs e) { _itemsp = new ItemSanPham(""); _itemsp.ShowDialog(); if (_itemsp.CheckkQ == true) { LoadData(); } }
private void btnSua_Click(object sender, EventArgs e) { string maSP = ShowSanPham.CurrentRow.Cells["MaSP"].Value.ToString(); _itemsp = new ItemSanPham(maSP); _itemsp.ShowDialog(); if (_itemsp.CheckkQ == true) { LoadData(); } }