Exemple #1
0
 private static void DefaultCopy(PreservablePropertyContext context, StorePropertyDefinition prop)
 {
     CalendarItemBase.CopyPropertiesTo(context.MeetingRequest, context.CalendarItem, new PropertyDefinition[]
     {
         prop
     });
 }
Exemple #2
0
        private void ProcessChangeHighlights(CalendarItemBase calendarItem, long meetingRequestBodySize, long calendarItemBodySize)
        {
            int num = base.GetValueOrDefault <int>(InternalSchema.ChangeHighlight, -1);

            if (calendarItem.IsNew && !(calendarItem is CalendarItemOccurrence))
            {
                num = 0;
                base.LocationIdentifierHelperInstance.SetLocationIdentifier(47221U);
                this[InternalSchema.ChangeHighlight] = num;
            }
            else
            {
                ChangeHighlightHelper changeHighlightHelper = MeetingRequest.CompareForChangeHighlightOnUpdatedItems(base.PropertyBag, meetingRequestBodySize, calendarItem.PropertyBag, calendarItemBodySize);
                if (this.ShouldPreserveAttendeesChanges(calendarItem))
                {
                    PreservablePropertyContext context = new PreservablePropertyContext(this, calendarItem, (ChangeHighlightProperties)num);
                    foreach (StorePropertyDefinition storePropertyDefinition in ChangeHighlightHelper.HighlightProperties)
                    {
                        if (changeHighlightHelper[storePropertyDefinition])
                        {
                            PreservableMeetingMessageProperty preservableMeetingMessageProperty = null;
                            if (PreservableMeetingMessageProperty.InstanceFromPropertyDefinition.TryGetValue(storePropertyDefinition, out preservableMeetingMessageProperty))
                            {
                                changeHighlightHelper[storePropertyDefinition] = !preservableMeetingMessageProperty.ShouldPreserve(context);
                            }
                        }
                    }
                }
                num = changeHighlightHelper.HighlightFlags;
                MeetingMessageType meetingMessageType = changeHighlightHelper.SuggestedMeetingType;
                if (meetingMessageType == MeetingMessageType.InformationalUpdate && calendarItem.IsCancelled)
                {
                    meetingMessageType = MeetingMessageType.FullUpdate;
                }
                if (this.MeetingRequestType != MeetingMessageType.PrincipalWantsCopy)
                {
                    this.MeetingRequestType = meetingMessageType;
                }
                else
                {
                    base.LocationIdentifierHelperInstance.SetLocationIdentifier(35701U);
                    this[InternalSchema.OriginalMeetingType] = meetingMessageType;
                }
                base.LocationIdentifierHelperInstance.SetLocationIdentifier(52085U);
                this[InternalSchema.ChangeHighlight] = num;
            }
            calendarItem.SetChangeHighlight(num);
        }
Exemple #3
0
        public static void CopyPreserving(PreservablePropertyContext context)
        {
            List <PreservableMeetingMessageProperty> list = new List <PreservableMeetingMessageProperty>();

            foreach (PreservableMeetingMessageProperty preservableMeetingMessageProperty in PreservableMeetingMessageProperty.PreservableProperties)
            {
                if (!preservableMeetingMessageProperty.ShouldPreserve(context))
                {
                    list.Add(preservableMeetingMessageProperty);
                }
            }
            foreach (PreservableMeetingMessageProperty preservableMeetingMessageProperty2 in list)
            {
                preservableMeetingMessageProperty2.Copy(context);
            }
        }
Exemple #4
0
 private void Copy(PreservablePropertyContext context)
 {
     this.CopyProperty(context, this.PropertyDefinition);
 }
Exemple #5
0
 private static bool IsLocationConsistent(PreservablePropertyContext context)
 {
     return(context.CalendarItem.Location.Contains(context.MeetingRequest.Location));
 }
Exemple #6
0
 private static bool PreserveLocationTest(PreservablePropertyContext context)
 {
     return(context.MeetingRequest.IsRepairUpdateMessage && (context.OrganizerHighlights & ChangeHighlightProperties.Location) == ChangeHighlightProperties.None && PreservableMeetingMessageProperty.IsLocationConsistent(context));
 }
Exemple #7
0
 private static bool IsRumTest(PreservablePropertyContext context)
 {
     return(context.MeetingRequest.IsRepairUpdateMessage);
 }