Ejemplo n.º 1
0
        private void btnWrite_Click(object sender, EventArgs e)
        {
            // UI Notification
            StatusUpdate(2, true);

            // Write to TCP
            try
            {
                if (tcp.Write(txtWrite.Text))
                {
                    Log("Write (Success) : " + txtWrite.Text);
                }
                else
                {
                    Log("Write (Failed) : Disconnected");
                }
            }catch(Exception ex)
            {
                // Catch errors in Sending Data
                Log("Error : " + ex.ToString());
            }
            
        }