Example #1
0
        public TrackedDayRecordViewModel()
        {
            DrinkTypes = Mapper.Map <ObservableCollection <DrinkTypeViewModel> >(DrinkTypesService.GetAll());
            DrinkType  = DrinkTypes.FirstOrDefault();

            Time = DateTime.Now.TimeOfDay;

            Volume = _step;

            DecreasePortionCommand = new Command(DecreasePortion);
            IncreasePortionCommand = new Command(IncreasePortion);
        }