Пример #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);
 }