/// <summary> /// In the event that we received an error pop up a MessageBox. Note /// that we're using a separate method with a delegate to make sure we /// show the MessageBox on the UI thread otherwise we'll get an /// exception. /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void onGetIncidentsFailed( object sender, ClientRequestFailedEventArgs args ) { Alert("An Error Occurred Retreiving Incidents. Please refresh the page and try again:\n\n" + args.Exception); }
private void FailedCallback(object Sender, ClientRequestFailedEventArgs e) { Dispatcher.BeginInvoke(() => { MessageBox.Show(e.Message); }); }
private void ClientRequestFailed(object sender, ClientRequestFailedEventArgs args) { Dispatcher.BeginInvoke(() => { MessageBox.Show("Connection failed. Error code: " + args.ErrorCode.ToString() + ". Message: " + args.Message); }); }
private void failedCallback(object sender, ClientRequestFailedEventArgs e) { this.Dispatcher.BeginInvoke(() => { MessageBox.Show(e.ErrorDetails.ToString(), "error", MessageBoxButton.OK); dataGrid1.IsBusy = false; } ); }
public void HandleClientRequestFailed(object sender, ClientRequestFailedEventArgs args) { thread.Post(new System.Threading.SendOrPostCallback(delegate(object state) { EventHandler h = OperationFailed; if (h != null) { h(this, args); } }), null); }
private void ClientFailed(object sender, ClientRequestFailedEventArgs e) { string msg = e.Exception.Message; if (String.IsNullOrEmpty(msg) && e.Exception.InnerException != null) { msg = e.Exception.InnerException.Message; } Dispatcher.BeginInvoke(() => txtWebName.Text = "Error: " + msg); }
private void onQueryFailed(object sender, ClientRequestFailedEventArgs args) { //The query failed, display the reason resultLabel.Content = "Request Failed: " + args.Message; }
private void OnRequestFailed(object sender, ClientRequestFailedEventArgs args) { }
private void failedCallbackTEAM(object sender, ClientRequestFailedEventArgs e) { MessageBox.Show(e.ErrorDetails.ToString(), "error", MessageBoxButton.OK); }
private void onQueryFailed(object sender, ClientRequestFailedEventArgs args) { MessageBox.Show("Request failed"); }
private void FailedCallback(object Sender, ClientRequestFailedEventArgs e) { Dispatcher.BeginInvoke(() => message.Text = e.Message); }
void webFailedCallback(object sender, ClientRequestFailedEventArgs args) { Debug.WriteLine(args.Message); }
private void onQueryFailure(object sender, ClientRequestFailedEventArgs e) { MessageBox.Show("Error:" + e.Message); }
public void OperationFailed(object sender, EventArgs e) { ClientRequestFailedEventArgs args = (ClientRequestFailedEventArgs)e; Messages.Text += "Write to list failed! " + args.Message; }
private void FailedCallback(object sender, ClientRequestFailedEventArgs args) { MessageBox.Show("FAIL"); }
private void ClientFailed(object sender, ClientRequestFailedEventArgs e) { MessageBox.Show(e.Exception.Message, "Exception", MessageBoxButton.OK); }
private void onQueryFailed(object sender, ClientRequestFailedEventArgs args) { Deployment.Current.Dispatcher.BeginInvoke(() => MessageBox.Show("Execution Failed:" + args.Exception.InnerException.Message)); }
private void onQueryFailed(object sender, ClientRequestFailedEventArgs args) { //The query failed, display the reason MessageBox.Show("Request Failed: " + args.Message); }
// general fail listener that shows exception message in message box private void OnFailListener(object sender, ClientRequestFailedEventArgs args) { _syncContext.Post(OnFailUpdateUI, args.Exception); }
private void FailedCallback(object Sender, ClientRequestFailedEventArgs e) { _dispatcher.BeginInvoke(() => { Error = e.Message; }); }