コード例 #1
0
 // Token: 0x06002FD2 RID: 12242 RVA: 0x00116930 File Offset: 0x00114B30
 private static void GetConflictingAppointments(Infobar infobar, CalendarItemBase calendarItemBase, UserContext userContext)
 {
     if (Utilities.IsPublic(calendarItemBase))
     {
         return;
     }
     using (CalendarFolder calendarFolder = CalendarFolder.Bind(calendarItemBase.Session as MailboxSession, DefaultFolderType.Calendar))
     {
         AdjacencyOrConflictInfo[] adjacentOrConflictingItems = calendarFolder.GetAdjacentOrConflictingItems(calendarItemBase);
         if (adjacentOrConflictingItems != null && adjacentOrConflictingItems.Length != 0)
         {
             if (Utilities.IsOtherMailbox(calendarItemBase))
             {
                 CalendarUtilities.AddConflictingAppointmentsInfobarMessage(infobar, adjacentOrConflictingItems, userContext, calendarItemBase.CalendarItemType, Utilities.GetMailboxOwnerDisplayName((MailboxSession)calendarItemBase.Session), OwaStoreObjectId.CreateFromStoreObject(calendarFolder));
             }
             else
             {
                 CalendarUtilities.AddConflictingAppointmentsInfobarMessage(infobar, adjacentOrConflictingItems, userContext, calendarItemBase.CalendarItemType);
             }
         }
     }
 }
コード例 #2
0
 // Token: 0x06002FD3 RID: 12243 RVA: 0x001169C4 File Offset: 0x00114BC4
 private static void AddConflictingAppointmentsInfobarMessage(Infobar infobar, AdjacencyOrConflictInfo[] adjacencyOrConflictInfo, UserContext userContext, CalendarItemType calendarItemType)
 {
     CalendarUtilities.AddConflictingAppointmentsInfobarMessage(infobar, adjacencyOrConflictInfo, userContext, calendarItemType, null, null);
 }