public ClientHandler(TcpClient client, ServerFrm main) { Main = main; Client = client; clientIP = client.Client.RemoteEndPoint.ToString(); //start reading data from the client in a separate thread Data = new byte[client.ReceiveBufferSize]; client.GetStream().BeginRead(Data, 0, System.Convert.ToInt32(client.ReceiveBufferSize), ReceiveMessage, null); }
private void barButtonItem1_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ServerFrm fofo = new ServerFrm(); fofo.ShowDialog(); }