Пример #1
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            BusyIndicator1.IsBusy      = true;
            BusyIndicator1.BusyContent = "Copying Estimate ...";

            Int32.TryParse(txtSourceEstimateNumber.Text.Trim(), out _sourceEstimateNo);

            if (_sourceEstimateNo != _destinationEstimateNo)
            {
                //if (_sourceEstimateNo == 0)
                //  _sourceEstimateNo = null;

                _mrsClient.CopyEstimateCheckDifferenceCompleted += new EventHandler <CopyEstimateCheckDifferenceCompletedEventArgs>(_mrsClient_CopyEstimateCheckDifferenceCompleted);
                _mrsClient.CopyEstimateCheckDifferenceAsync(_sourceEstimateNo.ToString(), _destinationEstimateNo.ToString());
            }
            else
            {
                CancelButton_Click(sender, null);
            }
        }