コード例 #1
0
        private void LoadAppSettings()
        {
            ReadAppSettings();

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

            GetGameTypes();

            CheckSettings();

            SetupViewModel.SetCurrentSettings(_appSettings);
            GameOverviewViewModel.LoadGames();
        }
コード例 #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();
        }
コード例 #3
0
 internal void AddedNewGame()
 {
     IsCreatingNewGame = false;
     GameOverviewViewModel.LoadGames();
 }