public OnlineCreateNewPlayer(OnlineGame.OnlineGame game)
 {
     InitializeComponent();
     this.game = game;
     DelegatesData.HandlerPlayersListRefresh = new DelegatesData.PlayersListRefresh(PlayerListFill);
     DelegatesData.HandlerGameTableOpen = new DelegatesData.GameTableOpen(GoToGameTable);
 }
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     OnlineGame.OnlineGame game = new OnlineGame.OnlineGame();
     OnlineCreateNewPlayer cr = new OnlineCreateNewPlayer(game);
     cr.Show();
     this.Close();
 }