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); } }
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); }