public void StartServer() { string ip = txbIP.Text; int port = int.Parse(txbPort.Text); tcp = new TCPModel(ip, port); tcp.Listen(); btnStart.Enabled = false; }
public void StartServer() { string ip = textBox1.Text; int port = int.Parse(textBox2.Text); tcp = new TCPModel(ip, port); tcp.Listen(); button1.Enabled = false; }
public void StartServer() { string IP = txtIP.Text; int Port = int.Parse(txtPort.Text); tcp = new TCPModel(IP, Port); tcp.Listen(); btnStart.Enabled = false; Console.WriteLine("OK!"); }