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 KhoiDongServer() { tcp = new TCPModel(textBox1.Text, int.Parse(textBox2.Text)); button1.Enabled = false; tcp.Listen(); }