/// <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);
 }
Пример #2
0
 private void FailedCallback(object Sender, ClientRequestFailedEventArgs e)
 {
     Dispatcher.BeginInvoke(() =>
     {
         MessageBox.Show(e.Message);
     });
 }
Пример #3
0
 private void ClientRequestFailed(object sender, ClientRequestFailedEventArgs args)
 {
     Dispatcher.BeginInvoke(() =>
     {
         MessageBox.Show("Connection failed. Error code: "
                         + args.ErrorCode.ToString() + ". Message: " + args.Message);
     });
 }
Пример #4
0
 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);
 }
Пример #6
0
        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);
        }
Пример #7
0
 private void onQueryFailed(object sender, ClientRequestFailedEventArgs args)
 {
     //The query failed, display the reason
     resultLabel.Content = "Request Failed: " + args.Message;
 }
Пример #8
0
 private void OnRequestFailed(object sender, ClientRequestFailedEventArgs args)
 {
 }
Пример #9
0
 private void failedCallbackTEAM(object sender, ClientRequestFailedEventArgs e)
 {
     MessageBox.Show(e.ErrorDetails.ToString(), "error", MessageBoxButton.OK);
 }
Пример #10
0
 private void onQueryFailed(object sender, ClientRequestFailedEventArgs args)
 {
     MessageBox.Show("Request failed");
 }
Пример #11
0
 private void FailedCallback(object Sender, ClientRequestFailedEventArgs e)
 {
     Dispatcher.BeginInvoke(() => message.Text = e.Message);
 }
Пример #12
0
 void webFailedCallback(object sender, ClientRequestFailedEventArgs args)
 {
     Debug.WriteLine(args.Message);
 }
Пример #13
0
 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");
 }
Пример #16
0
 void webFailedCallback(object sender, ClientRequestFailedEventArgs args)
 {
     Debug.WriteLine(args.Message);
 }
 private void ClientFailed(object sender,
                           ClientRequestFailedEventArgs e)
 {
     MessageBox.Show(e.Exception.Message, "Exception", MessageBoxButton.OK);
 }
Пример #18
0
 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);
 }
Пример #20
0
 // general fail listener that shows exception message in message box
 private void OnFailListener(object sender, ClientRequestFailedEventArgs args)
 {
     _syncContext.Post(OnFailUpdateUI, args.Exception);
 }
Пример #21
0
 private void FailedCallback(object Sender, ClientRequestFailedEventArgs e)
 {
     _dispatcher.BeginInvoke(() =>
     {
         Error = e.Message;
     });
 }