예제 #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();
            }
        }
예제 #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();
            }
        }