示例#1
0
        public override async void Init(object initData)
        {
            base.Init(initData);

            var service    = new EventsService(_user.Token);
            var dates      = new ObservableCollection <DateTime>(await service.GetEventsDates());
            var eventDates = new ObservableCollection <SpecialDate>();

            foreach (var dateTime in dates)
            {
                eventDates.Add(new SpecialDate(dateTime)
                {
                    BackgroundColor = Color.LightCoral,
                    Selectable      = true
                });
            }

            EventDates = eventDates;
        }