Example #1
0
        public CharacterViewModel()
        {
            this.characterModel = WindsorContainerFactory.Container.Resolve <ICharacterModel>();
            this.characterModel.PropertyChanged += CharacterModel_PropertyChanged;

            this.mainPageModel = WindsorContainerFactory.Container.Resolve <IMainPageModel>();

            GenerateCharacterCommand = new RelayCommand(() =>
            {
                characterModel.GenerateCharacter();
            });

            BackCommand = new RelayCommand(() =>
            {
                mainPageModel.ShowStartScreen();
            });
        }