public ClientReceiver(BinaryReader br, BinaryWriter bw, TextBox textBoxChattingList, Label labelCurrentPersonCount, OneCard Game, List <int> mycards, Dictionary <String, PlayerInfo> players, String Nickname) { this.br = br; this.bw = bw; this.textBoxChattingList = textBoxChattingList; this.labelCurrentPersonCount = labelCurrentPersonCount; this.Game = (OneCard)Game; this.mycards = mycards; this.players = players; this.MyNickName = Nickname; }
public ServerReceiver(TcpClient tcpClient, Dictionary <String, BinaryWriter> clients, TextBox textBoxChattingList, RoomInfo roomInformation, OneCard Game) { this.tcpClient = tcpClient; this.textBoxChattingList = textBoxChattingList; this.roomInformation = roomInformation; this.clients = clients; this.Game = (OneCard)Game; ns = this.tcpClient.GetStream(); bw = new BinaryWriter(ns); br = new BinaryReader(ns); serverCommand = new ServerCommand(br, bw, clients); }