예제 #1
0
        /// <summary>
        /// Cancels all pending notification messages registered in the notification manager.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnClickCancelNotifications(object sender, System.EventArgs e)
        {
            string Tag = "CancelNotifications";

            try
            {
                NotificationController.CancelNotifications(this);

                log.Info(Tag, "Success");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public void CancelNotifications()
 {
     NotificationController.CancelNotifications(Application.Context);
 }