Ejemplo n.º 1
0
 private void btDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Bạn có chắc muốn xóa món?", "Thông báo", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
     {
         int         idMenuSelect = Convert.ToInt32(cbMenu.SelectedValue.ToString());
         BillInfoDAL billInfoDAL  = new BillInfoDAL();
         billInfoDAL.DeleteBillInfo(table.Status, idMenuSelect);
         loadBill(this.table.Status);
     }
     else
     {
         MessageBox.Show(" Có lỗi khi xóa món", "Thông báo");
     }
 }