private void LoadAppSettings()
        {
            ReadAppSettings();

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

            GetGameTypes();

            CheckSettings();

            SetupViewModel.SetCurrentSettings(_appSettings);
            GameOverviewViewModel.LoadGames();
        }
        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();
        }
 internal void AddedNewGame()
 {
     IsCreatingNewGame = false;
     GameOverviewViewModel.LoadGames();
 }