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; } }
void _IUccPresentityEvents.OnCategoryContextRemoved( UccPresentity presentity, UccCategoryContextEvent categoryContext) { ComEvents.Unadvise <_IUccCategoryContextEvents>(categoryContext.CategoryContext, this); }