void btport_BTDataReceived(object sender, BTPort.DataEventArgs d) { string data = d._string; string s = ""; // Display the text to the user in the terminal if (bUseHexDecode) s = Utility.HexEncoding.ToMixedString(data); else s = data; txtReceive.Invoke(new EventHandler(delegate { txtReceive.Text += "<" + s + "\r\n"; })); //added < to mark incoming data }
public frmLanguage(ref SerialPort sp, ref BTPort bt) { InitializeComponent(); _sp = sp; _bt = bt; ResClass2 res = ResClass2.getInstance(); res.colorizeForm(this); btnLangDE.Text = res._buttonTexts[0]; btnLangEN.Text = res._buttonTexts[1]; btnLangES.Text = res._buttonTexts[2]; }
void showLangSelect(ref SerialPort serConn, ref Comm.BT.BTPort btConn) { comport = serConn; btport = btConn; //if (bUseSocket) // comport = null; //else // btport = null; frmLanguage dlg = new frmLanguage(ref comport, ref btport); dlg.ShowDialog(); dlg.Dispose(); }