Ejemplo n.º 1
0
 private void btnXoa_Click(object sender, EventArgs e)
 {
     if (txtTongTien.Text == "0")
     {
         if (MessageBox.Show("Bạn có chắc muốn xoá phiếu nhập này?", "Thông báo", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
         {
             PhieuNhapBUS.DeletePhieuNhap(txtMaNhap.Text);
             MessageBox.Show("Xoá thành công!");
             LoadDS();
         }
     }
     else
     {
         MessageBox.Show("Vui lòng xoá hết sách ra khỏi phiếu nhập.");
     }
 }