//public Player Player //{ // get { return player; } // set { player = value; } //} public RemoteGameController(Player player, ClientSide clientSide, UDPClientServerCommons.Packets.GameInfoPacket gameInfo) { gameStatus = GameStatus.WaitingForStart; clientNetworkLayer = clientSide; this.player = player; this.gameInfo = gameInfo; }
public ChooseTeamForm(UDPClientServerCommons.Packets.GameInfoPacket gameInfo) { InitializeComponent(); packet = (UDPClientServerCommons.Packets.GameInfoPacket)gameInfo.Clone(); dataGridView1.DataSource = packet.TeamScoreList; dataGridView2.DataSource = packet.PlayerStatusList; dataGridView2.Enabled = false; this.DialogResult = DialogResult.Cancel; this.textBox1.Text += textBox1.Text.GetHashCode().ToString(); }