Exemplo n.º 1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            DateTime tTime;
            string   szCommand, szRecv;

            szCommand = txtSend.Text + "\r";

            if (adamSk.AdamTransaction(szCommand, out szRecv))
            {
                txtRespond.Text = szRecv;
            }
            else
            {
                txtRespond.Text = adamSk.LastError.ToString();
            }

            tTime        = DateTime.Now;
            txtTime.Text = tTime.ToString("hh:mm:ss");
        }