Exemplo n.º 1
0
        public FinaleQuizViewModel(SimpleContainer container)
        {
            this.container = container;

            smoelenViewModel = container.GetInstance <SmoelenViewModel>();
            smoelenViewModel.CanSelectUserDelegate = name =>
            {
                var antwoordenData = Util.SafeReadJson <FinaleAntwoordenData>();

                var result = !antwoordenData.Spelers.Any(s => s.Naam.SafeEqual(name));
                return(result);
            };

            smoelenViewModel.DoNext = vm => StartFinaleVragen(vm.Naam);
        }
Exemplo n.º 2
0
        public QuizViewModel(SimpleContainer container)
        {
            this.container = container;

            smoelenViewModel = container.GetInstance <SmoelenViewModel>();
            smoelenViewModel.CanSelectUserDelegate = name =>
            {
                var adminData = Util.GetAdminDataOfSelectedDag(container);

                var result = !adminData.HeeftQuizGespeeld.Any(s => s.Naam.SafeEqual(name));
                return(result);
            };

            smoelenViewModel.DoNext = vm => StartQuiz(vm.Naam);
        }