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