public static DlgGameLobby JoinGame(SpaceSiegeGame game) { DlgGameLobby lobby = new DlgGameLobby(game); lobby.chatPanel.gpgChatGrid.Refresh(); return lobby; }
public static DlgGameLobby HostGame() { SpaceSiegeGame game = new SpaceSiegeGame(new SpaceSiegeGameParticipant(User.Current.Name, User.Current.ID)); game.Host.Position = 0; DlgGameLobby lobby = new DlgGameLobby(game); lobby.chatPanel.gpgChatGrid.Refresh(); return lobby; }