/// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="pageMode"></param>
        public IncidentListPage(PageMode pageMode)
        {
            this.pageMode = pageMode;

            InitializeComponent();

            this.Title = pageMode.GetDescription();

            this.core = App.Core;

            this.BindingContext = this;

            this.startDatePicker.Date = DateTime.Today.AddDays(-7);
            this.endDatePicker.Date   = DateTime.Today;
        }
        private static async Task <Lers.Notification[]> GetNewNotifications(Core.MobileCore appService, DateTime lastNotifyDate)
        {
            Task <Lers.Notification[]> getTask;

            if (lastNotifyDate == DateTime.MinValue)
            {
                getTask = appService.Server.Notifications.GetListAsync();
            }
            else
            {
                DateTime endDate = DateTime.Now.AddDays(1);

                getTask = appService.Server.Notifications.GetListAsync(lastNotifyDate.AddSeconds(-1), endDate);
            }

            var list = await getTask;

            return(list.OrderByDescending(x => x.Id).ToArray());
        }