Ejemplo n.º 1
0
        public override async Task Initialize()
        {
            KeyboardService.HideKeyboard();
            Messenger.Publish(new ProgressBarActivator(this, true));
            var comingSoonGames = await _gameService.GetGames(HomeGamesCategory.ComingSoon);

            foreach (var game in comingSoonGames)
            {
                ComingSoonGames.Add(new GameWithImageRowModel(game));
            }

            var brandNewGames = await _gameService.GetGames(HomeGamesCategory.BrandNew);

            foreach (var game in brandNewGames)
            {
                BrandNewGames.Add(new GameWithImageRowModel(game));
            }

            var hottestGames = await _gameService.GetGames(HomeGamesCategory.Hottest);

            foreach (var game in hottestGames)
            {
                HottestGames.Add(new GameWithImageRowModel(game));
            }

            var onSaleGames = await _gameService.GetGames(HomeGamesCategory.OnSale);

            foreach (var game in onSaleGames)
            {
                OnSaleGames.Add(new GameWithImageRowModel(game));
            }
            Messenger.Publish(new ProgressBarActivator(this, false));
        }
        public StudentProfileView(string studentID)
        {
            InitializeComponent();
            KeyboardService.HideKeyboard();

            BindingContext = vm = new StudentProfileViewModel(studentID);
            vm.Nav         = this;
        }
        public StudentProfileView(StudentDetails details)
        {
            InitializeComponent();
            KeyboardService.HideKeyboard();
            BindingContext = vm = new StudentProfileViewModel(details);
            vm.Nav         = this;

            //this.SizeChanged += StudentProfileView_SizeChanged;
        }