Abc.NCrafts.App.MainViewModel.MainViewModel C# (CSharp) Method

MainViewModel() public method

public MainViewModel ( ) : System
return System
        public MainViewModel()
        {
            EnsureQuizCanBeLoaded();

            _welcomePage = new WelcomePage(this);
            _allocationGamePage = new AllocationGamePage(this);
            _performanceGamePage = new PerformanceGamePage(this);
            _endPage = new EndPage(this);

            _allocationGamePage.NextPage = _endPage;
            _performanceGamePage.NextPage = _endPage;
            _endPage.NextPage = _welcomePage;

            CurrentPage = _welcomePage;
        }