Пример #1
0
 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));
     }
 }
Пример #2
0
 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));
     }
 }