예제 #1
0
        void SerialComPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            ResultadoBuffer = SerialComPort.ReadExisting();
            FundDelegate EnviaTextBox = new FundDelegate(EscreveTXT);

            EnviaTextBox.Invoke(ResultadoBuffer);
        }
예제 #2
0
 public void EscreveTXT(string a)
 {
     if (this.txtRecepcao.InvokeRequired)
     {
         FundDelegate d = new FundDelegate(EscreveTXT);
         this.Invoke(d, new object[] { a });
     }
     else
     {
         this.txtRecepcao.Text += a;
     }
 }