Beispiel #1
0
        void mrsClient_CompareEstimateHeaderCompleted(object sender, CompareEstimateHeaderCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                HeaderCompareGrid.ItemsSource = e.Result;

                RetailSystemClient mrsClient = new RetailSystemClient();
                mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl());

                mrsClient.CompareEstimateDetailsCompleted += new EventHandler <CompareEstimateDetailsCompletedEventArgs>(mrsClient_CompareEstimateDetailsCompleted);
                mrsClient.CompareEstimateDetailsAsync(Convert.ToInt32(cmbRevision1.SelectedValue), Convert.ToInt32(cmbRevision2.SelectedValue));
            }
            else
            {
                ExceptionHandler.PopUpErrorMessage(e.Error, "CompareEstimateHeaderCompleted");
                BusyIndicator1.IsBusy = false;
            }
        }