Ejemplo n.º 1
0
        private void buttonClientConnect_Click(object sender, EventArgs e)
        {
            buttonClientConnect.Enabled = false;
            buttonServerStart.Enabled   = false;
            var tcpChat = new TCPChat()
            {
                isServer = false, serverIp = IPAddress.Parse(textBoxIp.Text)
            };

            tcpChat.Awake();
        }
Ejemplo n.º 2
0
        private void buttonServerStart_Click(object sender, EventArgs e)
        {
            buttonClientConnect.Enabled = false;
            buttonServerStart.Enabled   = false;
            var tcpChat = new TCPChat()
            {
                isServer = true
            };

            tcpChat.Awake();
        }