コード例 #1
0
        public GenerateRandomTeamsViewModel(GameCore core) : base(core)
        {
            NumberOfTeams      = 20;
            Reputation         = 9000;
            StadiumAttendances = 90000;

            generateDraftCardVm = new GenerateDraftCardViewModel(core);
            citySourcesVm       = new CitySourcesViewModel(core, NumberOfTeams);

            EditDraftCards = new RelayCommand(() =>
            {
                RightSideViewModel = generateDraftCardVm;
            });

            EditCitySources = new RelayCommand(() =>
            {
                RightSideViewModel = citySourcesVm;
            });
        }
コード例 #2
0
        public GenerateRandomTeamsViewModel(GameCore core)
            : base(core)
        {
            NumberOfTeams = 20;
            Reputation = 9000;
            StadiumAttendances = 90000;

            generateDraftCardVm = new GenerateDraftCardViewModel(core);
            citySourcesVm = new CitySourcesViewModel(core, NumberOfTeams);

            EditDraftCards = new RelayCommand(() =>
            {
                RightSideViewModel = generateDraftCardVm;
            });

            EditCitySources = new RelayCommand(() =>
            {
                RightSideViewModel = citySourcesVm;
            });
        }