Ejemplo n.º 1
0
        public async Task BaseMeetingOnActualDayUpdate()
        {
            BaseMeetingOnActualDay.Clear();
            var baseMeetings = await BaseMeetingDataStore.GetBaseMeetingsAsync(true);

            baseMeetings = baseMeetings.Where(bm => bm.DayWeek == _actualDay);
            foreach (var item in baseMeetings)
            {
                BaseMeetingOnActualDay.Add(item);
            }
        }
Ejemplo n.º 2
0
        public MeetingsViewModel()
        {
            Title = "Календарь";
            MeetingOnActualDay = new ObservableCollection <Meeting>();

            var basemeetings = BaseMeetingDataStore.GetBaseMeetingsAsync().Result;

            foreach (var basemeeting in basemeetings)
            {
                MeetingDataStore.AddMeetingsFromBase(basemeeting);
            }

            MeetingOnActualDayUpdate();
            NextDayCommand    = new Command(async() => await NextDay());
            PrevDayCommand    = new Command(async() => await PreviousDay());
            AddMeetingCommand = new Command(async() => await AddMeeting());
        }