Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public CarouselViewModel(IDataService dataService)
        {
            _dataService = dataService;
            _dataService.GetBoards(
                (boards, error) =>
                {
                    if (error != null)
                    {
                        // Report error here
                        return;
                    }

                    BoardList = new ObservableCollection<Board>(boards);
                });
        }