Ejemplo n.º 1
0
 internal void FireOnConversationSpawnConference(SktConversation sender, OnConversationSpawnConferenceArgs e)
 {
     if (OnConversationSpawnConference == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnConversationSpawnConferenceInNewThread); return; }
     gui.BeginInvoke(OnConversationSpawnConference, new object[] { sender, e }); // Synchronizing to gui thread
 }
Ejemplo n.º 2
0
 internal void ProcessOnConversationSpawnConference(SktConversation sender)
 {
     if (skypeRef.logging) skypeRef.Log("Processing event OnConversationSpawnConference");
     OnConversationSpawnConferenceArgs args = new OnConversationSpawnConferenceArgs();
     int marker = 0;
     int typeTag = 0;
     do
     {
     typeTag = skypeRef.transport.ReadByte();
     if (typeTag == 122) break;
     marker = skypeRef.transport.ReadByte();
     switch (marker)
     {
         case 1:
             args.spawned = (SktConversation)skypeRef.decoder.DecodeObject(18); // SktConversation class ID = 18
             break;
         default:
             if (marker != 122) skypeRef.Error(String.Format("Invalid event argument tag {0} in OnConversationSpawnConference", marker));
             break;
     }
     } while (marker != 'z');
     skypeRef.transport.ResumeSocketReaderFromEvent();
     args.senderobj = sender;
     FireOnConversationSpawnConference(sender, args);
 }