예제 #1
0
 internal void FireOnSkypeAvailableVideoDeviceListChange(SktSkype sender, OnSkypeAvailableVideoDeviceListChangeArgs e)
 {
     if (OnSkypeAvailableVideoDeviceListChange == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeAvailableVideoDeviceListChangeInNewThread); return; }
     gui.BeginInvoke(OnSkypeAvailableVideoDeviceListChange, new object[] { sender, e }); // Synchronizing to gui thread
 }
예제 #2
0
 internal void ProcessOnSkypeAvailableVideoDeviceListChange(SktSkype sender)
 {
     if (skypeRef.logging) skypeRef.Log("Processing event OnSkypeAvailableVideoDeviceListChange");
     OnSkypeAvailableVideoDeviceListChangeArgs args = new OnSkypeAvailableVideoDeviceListChangeArgs();
     int marker = 0;
     int typeTag = 0;
     do
     {
     typeTag = skypeRef.transport.ReadByte();
     if (typeTag == 122) break;
     marker = skypeRef.transport.ReadByte();
     switch (marker)
     {
         default:
             if (marker != 122) skypeRef.Error(String.Format("Invalid event argument tag {0} in OnSkypeAvailableVideoDeviceListChange", marker));
             break;
     }
     } while (marker != 'z');
     skypeRef.transport.ResumeSocketReaderFromEvent();
     args.senderobj = sender;
     FireOnSkypeAvailableVideoDeviceListChange(sender, args);
 }