public void DisplayNewMessage(string message) { Notification = new NotificationHelperExtended(message); Message = Notification.Message; Status = Notification.Successful; OnNotificationPopped(null); }
public async Task LoadAppData(bool loadBackUp) { if (!loadBackUp) { await App.DataModel.LoadData(); } else { Notification = await App.DataModel.LoadBackUp(); Message = Notification.Message; Status = Notification.Successful; OnNotificationPopped(null); await Task.Delay(1000); } }
public void AddNotification(NotificationHelperExtended notification) { if (Notifications != null) { NotificationHelperExtended tempRef = Notifications.FirstOrDefault(p => p.Message.Contains(notification.Message)) as NotificationHelperExtended; if (tempRef != null) { Notifications.Remove(tempRef); } Notifications.Add(notification); } else { Notifications = new ObservableCollection <NotificationHelperExtended>(); Notifications.Add(notification); } }