private void DeviceConnectinReceivedEvent(object sender, DeviceCommandEventHandlerArgs e) { //var cmd = new CmtiCommand(); foreach (var index in e.SmsIndex) { OnNewMessageEventHandlerArgs(index); } }
private void com_ReceivedOrReceiveEvent(object sender, DeviceCommandEventHandlerArgs e) { if (!InvokeRequired) { // richTextBoxOutput.Text = e.Command + richTextBoxOutput.Text; } else { Invoke(new Action<object, DeviceCommandEventHandlerArgs>(com_ReceivedOrReceiveEvent), sender, e); } }