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; } }
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; } }