Exemplo n.º 1
0
 private static void DefaultCopy(PreservablePropertyContext context, StorePropertyDefinition prop)
 {
     CalendarItemBase.CopyPropertiesTo(context.MeetingRequest, context.CalendarItem, new PropertyDefinition[]
     {
         prop
     });
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 4
0
 private void Copy(PreservablePropertyContext context)
 {
     this.CopyProperty(context, this.PropertyDefinition);
 }
Exemplo n.º 5
0
 private static bool IsLocationConsistent(PreservablePropertyContext context)
 {
     return(context.CalendarItem.Location.Contains(context.MeetingRequest.Location));
 }
Exemplo n.º 6
0
 private static bool PreserveLocationTest(PreservablePropertyContext context)
 {
     return(context.MeetingRequest.IsRepairUpdateMessage && (context.OrganizerHighlights & ChangeHighlightProperties.Location) == ChangeHighlightProperties.None && PreservableMeetingMessageProperty.IsLocationConsistent(context));
 }
Exemplo n.º 7
0
 private static bool IsRumTest(PreservablePropertyContext context)
 {
     return(context.MeetingRequest.IsRepairUpdateMessage);
 }