private void btnDeleteOrder_Click(object sender, EventArgs e) { DeleteOrder deleteOrder = new DeleteOrder(); if (deleteOrder.ShowDialog() == DialogResult.OK) { Order temp = deleteOrder.DeleteItem; orderService.DeleteOneOrder(temp.OrderId); RefreshDgv(); } }
private void btnDeleteOrder_Click(object sender, EventArgs e) { DeleteOrder deleteOrder = new DeleteOrder(); if (deleteOrder.ShowDialog() == DialogResult.OK) { Order temp = (Order)Intent.dict["deleteItem"]; orderService.DeleteOneOrder(temp.ID); RefreshDgv(); } }