/// <summary> /// Refreshs the list. /// </summary> protected override void RefreshList() { Manager.Fetch((results, ex) => { results = NotificationTabbedPage.FilterByPriority(results, Priority); if (ex == null) { EntityGroup.GroupEntities <Notification> (results, (groupedResults) => { Device.BeginInvokeOnMainThread(() => { listView.ItemsSource = groupedResults; listView.IsRefreshing = false; }); }); } else { ShowErrorAlert(ex); } }, true); }
/// <summary> /// Initializes a new instance of the <see cref="PhoenixImperator.Pages.Entities.NotificationListPage"/> class. /// </summary> /// <param name="title">Title.</param> /// <param name="icon">Icon.</param> /// <param name="notifications">Notifications.</param> /// <param name="priority">Priority.</param> public NotificationListPage(string title, string icon, IEnumerable <Notification> notifications, Notification.NotificationPriority priority) : base(title, Phoenix.Application.NotificationManager, NotificationTabbedPage.FilterByPriority(notifications, priority), true, true, false) { Icon = icon; Priority = priority; }