private void btnHost_Click(object sender, EventArgs e) { Server = new Server.ServerForm(); Server.Show(); System.Threading.Thread.Sleep(1500); Client = new Client.ClientForm(); Client.Connect(IPAddress.Parse("127.0.0.1")); Client.Show(); this.Hide(); }
public ConnectionManager(ServerForm form) { Form = form; }