コード例 #1
0
ファイル: AssignOwner.xaml.cs プロジェクト: maverick126/MRS
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            if (cmbOwner.SelectedIndex > 0)
            {
                BusyIndicator1.IsBusy      = true;
                BusyIndicator1.BusyContent = "Assigning Estimate...";

                if (_recordType == "Queue")
                {
                    _mrsClient.AssignQueuedEstimateCompleted += new EventHandler <AssignQueuedEstimateCompletedEventArgs>(mrsClient_AssignQueuedEstimateCompleted);
                    _mrsClient.AssignQueuedEstimateAsync(_recordId, (App.Current as App).CurrentUserId, Convert.ToInt32(cmbOwner.SelectedValue));
                }
                else
                {
                    _mrsClient.AssignWorkingEstimateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(mrsClient_AssignWorkingEstimateCompleted);
                    _mrsClient.AssignWorkingEstimateAsync(_recordId, (App.Current as App).CurrentUserId, Convert.ToInt32(cmbOwner.SelectedValue));
                }
            }
            else
            {
                DialogParameters param = new DialogParameters();
                param.Header  = "Owner is required";
                param.Content = "Please specify the Owner";
                RadWindow.Alert(param);
            }
        }
コード例 #2
0
ファイル: AssignToMe.xaml.cs プロジェクト: maverick126/MRS
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            BusyIndicator1.IsBusy = true;

            _mrsClient.AssignQueuedEstimateCompleted += new EventHandler <AssignQueuedEstimateCompletedEventArgs>(mrsClient_AssignQueuedEstimateCompleted);
            _mrsClient.AssignQueuedEstimateAsync(_recordId, (App.Current as App).CurrentUserId, (App.Current as App).CurrentUserId);
        }