Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        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();
            }
        }