public Client(TcpClient tcpClient)
 {
     this.tcpClient = tcpClient;
     serializer = new MessageSerializer();
     new Thread(DataReceived).Start(tcpClient);
 }
 public void CreateSerializer()
 {
     serializer = new MessageSerializer();
 }