예제 #1
0
        public void Update(Notification box)
        {
            int notificationindex = Notifications.IndexOf(box);

            if (Notifications[notificationindex] != null)
            {
                Notifications[notificationindex] = box;
            }
            NotificationInvalidate?.Invoke(null, EventArgs.Empty);
        }
예제 #2
0
 public void ClearAll()
 {
     Notifications.Clear();
     NotificationInvalidate?.Invoke(null, EventArgs.Empty);
 }
예제 #3
0
 public void Remove(Notification box)
 {
     Notifications.Remove(box);
     NotificationInvalidate?.Invoke(null, EventArgs.Empty);
 }
예제 #4
0
 public void Add(Notification box)
 {
     Notifications.Add(box);
     NotificationInvalidate?.Invoke(null, EventArgs.Empty);
 }