Ejemplo n.º 1
0
        private void RecieveNotification(string message, MessageIcon icon)
        {
            if (Notification != null)
            {
                return;
            }

            Notification            = new NotificationVM(message, icon);
            _hasPendingNotification = true;
        }
Ejemplo n.º 2
0
        private async void RecieveNotification(string message, MessageIcon icon)
        {
            var notification = new NotificationVM(message, icon);

            Notifications.Insert(0, notification);
            await Task.Delay(10000);

            notification.RaiseExpired();
            await Task.Delay(500);

            Notifications.Remove(notification);
        }