Beispiel #1
0
        private void btnCustomerSearch_Click(object sender, EventArgs e)
        {
            // The Customer search Button invokes as simple modal search dialogue
            // This enables the user to find a customer's Order when they don't know the CustomerID

            CustomerOrderSearchForm search = new CustomerOrderSearchForm();

            search.ShowDialog();
            //txtCustomerId.Text = search.SelectedCustomerId();
            txtOrderId.Text = search.SelectedOrderId();
            _presenter.txtCustomerId_TextChanged();
        }
Beispiel #2
0
        private void btnOrders_Click(object sender, EventArgs e)
        {
            // invoke order search form then pass result to appropriate editing form.

            CustomerOrderSearchForm srch = new CustomerOrderSearchForm();

            srch.ShowDialog();

            String orderId = srch.SelectedOrderId();

            if (orderId != "")
            {
                IOrder order = new Order(orderId);

                if (order.Status == OrderStatus.Unsubmitted)
                {
                    InvokeUnsubmittedOrderForm(order);
                }
                else
                {
                    InvokeSubmittedOrderForm(order);
                }
            }
        }