Esempio n. 1
0
        public async void AddSightAsync()
        {
            // Add CurrentSightTime and schedule toast notification
            if (CurrentSightDate.HasValue)
            {
                CurrentSight.VisitDate = CurrentSightDate.Value.Date.Add(CurrentSightTime);
            }

            ScheduledNotificationService.AddToastReminder(CurrentSight);

            CurrentSight.IsMySight = true;
            await UpdateSightAsync(CurrentSight);
        }
Esempio n. 2
0
        public async void AddSightAsync()
        {
            if (CurrentSightDate.HasValue)
            {
                CurrentSight.VisitDate = CurrentSightDate.Value.Date.Add(CurrentSightTime);
            }

            ScheduledNotificationService.AddToastReminder(CurrentSight);

            PopupManager.HideContent();
            CurrentSight.IsMySight = true;
            await UpdateSightAsync(CurrentSight);
        }