Ejemplo n.º 1
0
 public MainMenuViewModel(AppManager appManager, 
     SinglePlayerViewModel singlePlayerViewModel,
     CardsCatalogViewModel cardsCatalog)
 {
     _appManager = appManager;
     _singlePlayerViewModel = singlePlayerViewModel;
     _cardsCatalog = cardsCatalog;
 }
Ejemplo n.º 2
0
        public MainViewModel()
        {
            IsBusy = true;
            var container = Bootstrapper.Run();
            _appManager = container.Resolve<AppManager>();
            _chatManager = container.Resolve<ChatManager>();
            _accountManager = container.Resolve<AccountManager>();
            _searchManager = container.Resolve<SearchManager>();

            InitAsync();
        }
Ejemplo n.º 3
0
        public RegistrationViewModel(AccountManager accountManager, AppManager appManager)
        {
            _accountManager = accountManager;
            _appManager = appManager;

            NameValidator = new Validator(IsNameValid);
            PasswordValidator = new Validator(IsPasswordValid);

            Sexes = new[] { AppResources.Male, AppResources.Female };
            Countries = CountriesList.Countries; //TODO load from file
            Ages = Enumerable.Range(13, 120).ToArray();

            SelectedSex = Sexes[0];
            SelectedCountry = TryGetCurrentCountry();
            SelectedAge = 18;
        }