private void MenuItem_NewGame_OnClick(object sender, RoutedEventArgs e) { StartNewGame newGame = new StartNewGame(); newGame.Owner = this; newGame.WindowStartupLocation = WindowStartupLocation.CenterOwner; newGame.ShowDialog(); if (newGame.DialogResult.HasValue && newGame.DialogResult.Value) { _playerSession.SetPlayer(newGame.NewPlayer); } }