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

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

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

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

                // ReSharper disable once AccessToDisposedClosure
                source.Cancel();
            }
Пример #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();
        }
Пример #13
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     //RemoveToast(sender);
 }
Пример #14
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs args) => throw new NotImplementedException();
Пример #15
0
 internal void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Console.WriteLine("The toast encountered an error.");
 }
Пример #16
0
        private void ToastOnFailed(ToastNotification toastNotification, ToastFailedEventArgs args)
        {
            var tagString = toastNotification.Tag;

            ToastNotificationManager.History.Remove(tagString);
        }
Пример #17
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     Console.WriteLine(e.ErrorCode.Message);
 }
Пример #18
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     NewToastNotification.OpenBrowser("http://vtc.org.vn/");
 }
Пример #19
0
 private void toastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     //TODO: react to toast, either in a messaging service or the toast itself
 }
Пример #20
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     //MessageBox.Show("Toast failed");
 }
Пример #21
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     Debug.WriteLine(sender.Tag + " Toast_Failed");
 }
Пример #22
0
 private void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
     DisplayToastAction("The toast encountered an error.");
 }
Пример #23
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
 }
Пример #24
0
 private void ToastNotification_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     FailedException = args.ErrorCode;
     _result         = Result.Failed;
     _manualResetEventSlim.Set();
 }
Пример #25
0
 protected virtual void OnFailed(ToastNotification sender, ToastFailedEventArgs args)
 {
     Failed?.Invoke(sender, args);
 }
Пример #26
0
 private static void ToastFailed(ToastNotification sender, ToastFailedEventArgs e)
 {
 }
Пример #27
0
 private void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     LogManager.Log("Toast_Failed : " + args.ErrorCode.StackTrace);
 }
Пример #28
0
 void Toast_Failed(ToastNotification sender, ToastFailedEventArgs args) => GenerateQuickAction();
Пример #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);
 }
Пример #30
0
 static void toast_Failed(ToastNotification sender, ToastFailedEventArgs args)
 {
     //
 }