Пример #1
0
        void Sendmessage()
        {
            string texteE = textBoxEmission.Text;

            serialPort1.WriteLine(texteE);
            textBoxEmission.Clear();
        }
        void SendMessage()
        {
            string message = textBoxEmission.Text.TrimEnd('\n');

            serialPort1.WriteLine(message);
            byte[] chaine = Encoding.UTF8.GetBytes(message);
            UartEncodeAndSendMessage(0x0080, chaine.Length, chaine);
            textBoxEmission.Text = "";
        }
 private void Envoi()
 {
     serialPort1.WriteLine(textBoxEmission.Text);
     textBoxReception.Text += textBoxEmission.Text + "\n";
     textBoxEmission.Text   = "";
 }
 private void SendMessage()
 {
     serialPort1.WriteLine(textBoxEmission.Text);
     textBoxEmission.Text = "";
 }
 private void SendMessage()
 {
     textBoxReception.Text = "Reçu : " + textBoxEmission.Text + "\n" + textBoxReception.Text;
     serialPort1.WriteLine(textBoxEmission.Text);
     textBoxEmission.Text = null;
 }