Exemple #1
0
        private void buttonRequestOrderStatus_Click(object sender, EventArgs e)
        {
            var statusRequest = new OrderStatusRequest {
                OrderNumber = textRequestStatusOrderNumber.Text
            };

            var result = ServiceCommuincation.RequestOrderStatus(statusRequest);

            DisplayRequestOrderStatusResults(result);
        }
Exemple #2
0
        private void buttonRequestShippingInfo_Click(object sender, EventArgs e)
        {
            var startDate = dateTimeStartDate.Value.Date;
            var endDate   = dateTimeEndDate.Value.Date;

            var shipInfoRequest = new ShippingInfoRequest {
                StartDate = startDate, EndDate = endDate
            };

            var result = ServiceCommuincation.RequestShippingInformation(shipInfoRequest);

            if (!result.HasException)
            {
                DisplayShippingInfoResults(result);
            }
        }
Exemple #3
0
        private void buttonSubmitOrder_Click(object sender, EventArgs e)
        {
            SubmitOrderRequest orderRequest = null;

            if (DoSubmitOrderValidation())
            {
                orderRequest = BuildOrder();
            }

            if (orderRequest == null)
            {
                MessageBox.Show(@"No order created/submitted.", @"Results", MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
            }

            var result = ServiceCommuincation.SubmitOrder(orderRequest);

            DisplaySubmitOrderResults(result);

            tabSubmitOrderResults.Visible = true;
        }