コード例 #1
0
        // Token: 0x06000F5E RID: 3934 RVA: 0x00058470 File Offset: 0x00056670
        protected override void InternalCopyFrom(IProperty srcProperty)
        {
            ITimeZoneProperty timeZoneProperty = srcProperty as ITimeZoneProperty;

            if (timeZoneProperty == null)
            {
                throw new UnexpectedTypeException("ITimeZoneProperty", srcProperty);
            }
            string strData = Convert.ToBase64String(TimeZoneConverter.GetBytes(timeZoneProperty.TimeZone, timeZoneProperty.EffectiveTime));

            base.CreateAirSyncNode(strData);
        }
コード例 #2
0
        protected override void InternalCopyFromModified(IProperty srcProperty)
        {
            ITimeZoneProperty timeZoneProperty = srcProperty as ITimeZoneProperty;

            if (timeZoneProperty == null)
            {
                throw new UnexpectedTypeException("ITimeZoneProperty", srcProperty);
            }
            if (!this.TimeZoneExistsOnItem() || !TimeZoneConverter.IsClientTimeZoneEquivalentToServerTimeZoneRule(timeZoneProperty.TimeZone, this.TimeZone, this.EffectiveTime))
            {
                base.XsoItem[CalendarItemBaseSchema.StartTimeZone] = timeZoneProperty.TimeZone;
                base.XsoItem[CalendarItemBaseSchema.EndTimeZone]   = timeZoneProperty.TimeZone;
                base.XsoItem.Delete(CalendarItemBaseSchema.TimeZoneBlob);
            }
        }