Beispiel #1
0
        public override void Cancel <T>()
        {
            NotifierUWP notifier = new NotifierUWP();

            foreach (T item in manager.GetNotiList <T>())
            {
                notifier.Cancel(item.NotiId.ToString());
            }
        }
Beispiel #2
0
        public override void Schedule <T>()
        {
            NotifierUWP notifier = new NotifierUWP();
            DateTime    now      = DateTime.Now;

            foreach (T item in manager.GetNotiList <T>())
            {
                if (item.NotiTime > now)
                {
                    Notification notification = new Notification
                    {
                        Title      = item.GetNotiTitle(),
                        Text       = item.GetNotiText(),
                        Id         = item.NotiId,
                        NotifyTime = item.NotiTime
                    };
                    notification.SetType <T>();

                    notifier.Notify(notification);
                }
            }
        }
Beispiel #3
0
        public override void CancelAll()
        {
            NotifierUWP notifier = new NotifierUWP();

            notifier.CancelAll();
        }