예제 #1
0
        private async void OnNextOrEnd()
        {
            _statisticItem = new StatisticItem()
            {
                ActivityId = Activities[Counter].Id,
                Date       = DateTime.Now,
                Time       = new DateTime() + DateTime.Now.Subtract(StartTime),
                Result     = SliderValue
            };
            StatisticItems.Add(_statisticItem);

            if (Counter < Activities.Count - 1)
            {
                ++Counter;
                UpdatePopupPageData();
            }
            else
            {
                await ItemsRepository.AddStatisticItemsAsync(StatisticItems);

                await NavigationService.GoBackAsync();
            }
        }