예제 #1
0
        private void btnExit_Click(object sender, EventArgs e)
        {
            switch (isEdit)
            {
            case true:
                orderService.EditOrder(order.orderNo, order);
                this.Close();
                break;

            case false:
                orderService.AddOrder(order);
                this.Close();
                break;
            }
        }