Example #1
0
 private void toolDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Xác nhận xóa ?", "Delete", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         _MySQL.DeleteDanhMuc("tiepnhanyc", txtMaBN.Text);
         f_LoadDanhSachMay(txttimkiem.Text, dTKTuNgay.Value, dTKDenNgay.Value);
     }
 }
Example #2
0
 private void toolDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Xác nhận xóa ?", "Delete", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         foreach (DataGridViewRow row in dChiDinh.Rows)
         {
             if (row.Cells["Chon_chidinh"].Value.ToString() == "True")
             {
                 string id = row.Cells["IDchidinh"].Value.ToString();
                 _MySQLCMay.DeleteDanhMuc("v_chidinh", id);
             }
         }
         f_loadchidinh();
         f_loadcChiDinhDaXoaFromMySQL();
     }
 }