private void RecieveNotification(string message, MessageIcon icon) { if (Notification != null) { return; } Notification = new NotificationVM(message, icon); _hasPendingNotification = true; }
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); }