private void LoadScoringWindow(GameState gs) { Window w = new ScoringWindow(); ScoringWindowViewModel vm = ContainerHelper.Container.Resolve <ScoringWindowViewModel>(); vm.SetCurrentGameState(gs); w.DataContext = vm; w.Show(); NavToStartSession(); }
private void OpenScoringWindow(SessionConfigParams configParams) { Window w = new ScoringWindow(); ScoringWindowViewModel vm = ContainerHelper.Container.Resolve <ScoringWindowViewModel>(); GameState gs = GameStateFactory.GetNewGameState(configParams); vm.SetCurrentGameState(gs); w.DataContext = vm; w.Show(); NavToStartSession(); }