Пример #1
0
 void _IUccPresentityEvents.OnCategoryContextAdded(
     UccPresentity presentity,
     UccCategoryContextEvent categoryContext)
 {
     switch (categoryContext.CategoryContext.Name.Trim())
     {
     case CategoryName.State:
     case CategoryName.ContactCard:
     case CategoryName.UserProperties:
         ComEvents.Advise <_IUccCategoryContextEvents>(categoryContext.CategoryContext, this);
         break;
     }
 }
Пример #2
0
 void _IUccPresentityEvents.OnCategoryContextRemoved(
     UccPresentity presentity,
     UccCategoryContextEvent categoryContext)
 {
     ComEvents.Unadvise <_IUccCategoryContextEvents>(categoryContext.CategoryContext, this);
 }