void OnIncomingPhysicalConnection(object sender, IncomingPhysicalConnectionEventArgs e) { if (listBoxInfo.InvokeRequired) { this.Invoke(new EventHandler<IncomingPhysicalConnectionEventArgs>(OnIncomingPhysicalConnection), sender, e); } else { buttonAnswer.Tag = e.Connection; buttonAnswer.Enabled = true; listBoxInfo.Items.Add(string.Format("Incoming call {0}", e.Connection.CalledPartyNumber)); } }
void OnIncomingPhysicalConnection(object sender, IncomingPhysicalConnectionEventArgs e) { if (listBoxInfo.InvokeRequired) { this.Invoke(new EventHandler <IncomingPhysicalConnectionEventArgs>(OnIncomingPhysicalConnection), sender, e); } else { buttonAnswer.Tag = e.Connection; buttonAnswer.Enabled = true; listBoxInfo.Items.Add(string.Format("Incoming call {0}", e.Connection.CalledPartyNumber)); } }