internal void FireOnSkypeNewCustomContactGroup(SktSkype sender, OnSkypeNewCustomContactGroupArgs e)
 {
     if (OnSkypeNewCustomContactGroup == null) return; // No event assigned
     if (gui == null) { FireCallbackInSeparateThread(e, OnSkypeNewCustomContactGroupInNewThread); return; }
     gui.BeginInvoke(OnSkypeNewCustomContactGroup, new object[] { sender, e }); // Synchronizing to gui thread
 }
 internal void ProcessOnSkypeNewCustomContactGroup(SktSkype sender)
 {
     if (skypeRef.logging) skypeRef.Log("Processing event OnSkypeNewCustomContactGroup");
     OnSkypeNewCustomContactGroupArgs args = new OnSkypeNewCustomContactGroupArgs();
     int marker = 0;
     int typeTag = 0;
     do
     {
     typeTag = skypeRef.transport.ReadByte();
     if (typeTag == 122) break;
     marker = skypeRef.transport.ReadByte();
     switch (marker)
     {
         case 1:
             args.group = (SktContactGroup)skypeRef.decoder.DecodeObject(10); // SktContactGroup class ID = 10
             break;
         default:
             if (marker != 122) skypeRef.Error(String.Format("Invalid event argument tag {0} in OnSkypeNewCustomContactGroup", marker));
             break;
     }
     } while (marker != 'z');
     skypeRef.transport.ResumeSocketReaderFromEvent();
     args.senderobj = sender;
     FireOnSkypeNewCustomContactGroup(sender, args);
 }