Ejemplo n.º 1
0
        private void LoadAppSettings()
        {
            ReadAppSettings();

            Connection = _appSettings.ConnectionStrings.BlobStorageKey;
            PlayerName = _appSettings.Player;

            GetGameTypes();

            CheckSettings();

            SetupViewModel.SetCurrentSettings(_appSettings);
            GameOverviewViewModel.LoadGames();
        }
Ejemplo n.º 2
0
        public MainViewModel()
        {
            NewGameCommand      = new RelayCommand(NewGame, null);
            OpenSettingsCommand = new RelayCommand(OpenSettings, null);
            DataDirectory       = AppDomain.CurrentDomain.BaseDirectory + "\\data";
            IsAvailable         = true;
            IsCreatingNewGame   = false;

            GameOverviewViewModel = new GameOverviewViewModel(this);
            NewGameViewModel      = new NewGameViewModel(this);
            SetupViewModel        = new SetupViewModel(this);

            LoadAppSettings();
        }
Ejemplo n.º 3
0
 internal void AddedNewGame()
 {
     IsCreatingNewGame = false;
     GameOverviewViewModel.LoadGames();
 }