상속: UiElement
예제 #1
0
 public void PushNotification(NotificationKind notificationKind, string message)
 {
     lock (_lockObject)
     {
         var notificationItem = new NotificationItem(_notificationTime, notificationKind, message)
         {
             Width = _barWidth
         };
         notificationItem.Show();
         _notifications.Add(notificationItem);
         AddChildElement(notificationItem);
         if (_notifications.Count > _maxNotifications)
         {
             RemoveChild(_notifications.First());
             _notifications.RemoveAt(0);
         }
         UpdateIndices();
     }
 }
예제 #2
0
 public void PushNotification(NotificationKind notificationKind, string message)
 {
     lock (_lockObject)
     {
         var notificationItem = new NotificationItem(_notificationTime, notificationKind, message)
         {
             Width = _barWidth
         };
         notificationItem.Show();
         _notifications.Add(notificationItem);
         AddChildElement(notificationItem);
         if (_notifications.Count > _maxNotifications)
         {
             RemoveChild(_notifications.First());
             _notifications.RemoveAt(0);
         }
         UpdateIndices();
     }
 }