Exemple #1
0
 private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         Output.Text = "The toast encountered an error.";
     });
 }
Exemple #2
0
        private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
        {
            var tag        = sender.Tag;
            var resetEvent = _events[tag];

            resetEvent.Set();
        }
Exemple #3
0
        private static void ToastFailed(object source, ToastFailedEventArgs e)
        {
            // Check the error code
            var errorCode = e.ErrorCode;

            Debug.WriteLine("Error code:{0}", errorCode);
        }
Exemple #4
0
 private void ToastFailed(Windows.UI.Notifications.ToastNotification sender, ToastFailedEventArgs e)
 {
     //Dispatcher.Invoke(() =>
     //{
     //    Output.Text = "The toast encountered an error.";
     //});
 }
 private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         Debug.WriteLine("The toast encountered an error.");
     });
 }
Exemple #6
0
 async void toast_Failed(ToastNotification sender, ToastFailedEventArgs e)
 {
     await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         rootPage.NotifyUser("The toast encountered an error", NotifyType.ErrorMessage);
     });
 }
 //Toast 通知弹出失败的事件
 async void toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         //info.Text = "Toast通知消失:" + args.ErrorCode.ToString();
     });
 }
Exemple #8
0
 private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     //    Dispatcher.Invoke(() =>
     //    {
     //        sender.Content.GetHashCode();
     //        //Output.Text = "The toast encountered an error.";
     //    });
 }
            void OnFailed(ToastNotification sender, ToastFailedEventArgs args)
            {
                Unsubscribe(sender);

                SetMessage(new NotifyMessage(NotifyStatus.Failed, args.ErrorCode));

                // ReSharper disable once AccessToDisposedClosure
                source.Cancel();
            }
Exemple #10
0
        /// <summary>
        /// Event handler when the toast notifcation fails
        /// </summary>
        /// <param name="source"> Holds the details of the toast failing </param>
        /// <param name="e"> Holds the error code for the failed toast </param>
        private static void ToastFailed(object source, ToastFailedEventArgs e)
        {
            Console.WriteLine("Start Toast Failed");

            // Logs the errorcode of the failed toast
            Console.WriteLine("Toast Failed with ErrorCode {0}", e.ErrorCode);

            Console.WriteLine("End Toast Failed");
        }
        private void Toast_Failed(Windows.UI.Notifications.ToastNotification sender, ToastFailedEventArgs args)
        {
            var id = sender.Tag;

            _eventResult.Add(id, new NotificationResult()
            {
                Action = NotificationAction.Failed
            });
            _resetEvents[id].Set();
        }
        private void Toast_Failed(Windows.UI.Notifications.ToastNotification sender, ToastFailedEventArgs args)
        {
#if WINDOWS_UWP
            var id = sender.Tag;
#else
            var id = _toasts.Single(x => x.Value == sender).Key;
#endif
            _eventResult.Add(id, new NotificationResult()
            {
                Action = NotificationAction.Failed
            });
            _resetEvents[id].Set();
        }
Exemple #13
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     //RemoveToast(sender);
 }
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs args) => throw new NotImplementedException();
Exemple #15
0
 internal void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Console.WriteLine("The toast encountered an error.");
 }
Exemple #16
0
        private void ToastOnFailed(ToastNotification toastNotification, ToastFailedEventArgs args)
        {
            var tagString = toastNotification.Tag;

            ToastNotificationManager.History.Remove(tagString);
        }
Exemple #17
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Console.WriteLine(e.ErrorCode.Message);
 }
Exemple #18
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     NewToastNotification.OpenBrowser("http://vtc.org.vn/");
 }
Exemple #19
0
 private void toastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     //TODO: react to toast, either in a messaging service or the toast itself
 }
Exemple #20
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     //MessageBox.Show("Toast failed");
 }
Exemple #21
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     Debug.WriteLine(sender.Tag + " Toast_Failed");
 }
Exemple #22
0
 private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     DisplayToastAction("The toast encountered an error.");
 }
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
 }
Exemple #24
0
 private void ToastNotification_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     FailedException = args.ErrorCode;
     _result         = Result.Failed;
     _manualResetEventSlim.Set();
 }
Exemple #25
0
 protected virtual void OnFailed(ToastNotification sender, ToastFailedEventArgs args)
 {
     Failed?.Invoke(sender, args);
 }
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
 }
Exemple #27
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     LogManager.Log("Toast_Failed : " + args.ErrorCode.StackTrace);
 }
Exemple #28
0
 void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args) => GenerateQuickAction();
Exemple #29
0
 /// <summary>
 /// Triggered when the notification failed.
 /// </summary>
 /// <param name="sender">ToastNotification sender object.</param>
 /// <param name="e">Toast failed event arguments.</param>
 internal void Failed(ToastNotification sender, ToastFailedEventArgs e)
 {
     WriteLine($"An error has occurred. {e.ErrorCode}");
     Exit(-1);
 }
Exemple #30
0
 static void toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     //
 }