private async void ChangeGameSettings() { GameOptionsDialogViewModel dialogViewModel = new GameOptionsDialogViewModel("Game Settings", Convert.ToBoolean(_settingsService.GetMulticolour()), Convert.ToBoolean(_settingsService.GetMulticolourIsWild())); ContentDialogResult result = await _dialogService.ShowContentDialogAsync(dialogViewModel); if (result == ContentDialogResult.Primary) { _settingsService.SetMulticolour(dialogViewModel.multicolour.ToString()); _settingsService.SetMulticolourIsWild(dialogViewModel.multicolourIsWild.ToString()); } }
private async void ChangeGameSettings() { GameOptionsDialogViewModel dialogViewModel = new GameOptionsDialogViewModel("Game Settings", Convert.ToInt32(_settingsService.GetGameLength()), Convert.ToBoolean(_settingsService.GetGameType())); ContentDialogResult result = await _dialogService.ShowContentDialogAsync(dialogViewModel); if (result == ContentDialogResult.Primary) { _settingsService.SetGameLength(dialogViewModel.gameLength.ToString()); _settingsService.SetGameType(dialogViewModel.gameType.ToString()); } }