Пример #1
0
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <PropertyNames> changedProperties)
        {
            Teacher from = item as Teacher;

            if (changedProperties != null)
            {
                if (!EmailAddresses.SequenceEqual(from.EmailAddresses))
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.EmailAddresses);
                }

                if (!OfficeLocations.SequenceEqual(from.OfficeLocations))
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.OfficeLocations);
                }

                if (!PhoneNumbers.SequenceEqual(from.PhoneNumbers))
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.PhoneNumbers);
                }

                if (!PostalAddresses.SequenceEqual(from.PostalAddresses))
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.PostalAddresses);
                }
            }

            this.EmailAddresses  = from.EmailAddresses;
            this.OfficeLocations = from.OfficeLocations;
            this.PhoneNumbers    = from.PhoneNumbers;
            this.PostalAddresses = from.PostalAddresses;

            //guaranteed that upper temp and perm will be -1
            base.deserialize(from, changedProperties);
        }
Пример #2
0
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <SyncPropertyNames> changedProperties)
        {
            Teacher from = item as Teacher;

            if (changedProperties != null)
            {
                if (!GetEmailAddresses().SequenceEqual(from.EmailAddresses))
                {
                    changedProperties.Add(SyncPropertyNames.EmailAddresses);
                }

                if (!GetOfficeLocations().SequenceEqual(from.OfficeLocations))
                {
                    changedProperties.Add(SyncPropertyNames.OfficeLocations);
                }

                if (!GetPhoneNumbers().SequenceEqual(from.PhoneNumbers))
                {
                    changedProperties.Add(SyncPropertyNames.PhoneNumbers);
                }

                if (!GetPostalAddresses().SequenceEqual(from.PostalAddresses))
                {
                    changedProperties.Add(SyncPropertyNames.PostalAddresses);
                }
            }

            SetEmailAddresses(from.EmailAddresses);
            SetOfficeLocations(from.OfficeLocations);
            SetPhoneNumbers(from.PhoneNumbers);
            SetPostalAddresses(from.PostalAddresses);

            //guaranteed that upper temp and perm will be -1
            base.deserialize(from, changedProperties);
        }
Пример #3
0
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <BaseItemWin.PropertyNames> changedProperties)
        {
            Schedule from = item as Schedule;

            if (changedProperties != null)
            {
                if (DayOfWeek != from.DayOfWeek)
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.DayOfWeek);
                }

                if (StartTime != from.StartTime.ToUniversalTime())
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.StartTime);
                }

                if (EndTime != from.EndTime.ToUniversalTime())
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.EndTime);
                }

                if (!Room.Equals(from.Room))
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.Room);
                }

                if (ScheduleWeek != from.ScheduleWeek)
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.ScheduleWeek);
                }

                if (ScheduleType != from.ScheduleType)
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.ScheduleType);
                }

                if (LocationLatitude != from.LocationLatitude)
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.LocationLatitude);
                }

                if (LocationLongitude != from.LocationLongitude)
                {
                    changedProperties.Add(BaseItemWin.PropertyNames.LocationLongitude);
                }
            }

            DayOfWeek         = from.DayOfWeek;
            StartTime         = from.StartTime.ToUniversalTime();
            EndTime           = from.EndTime.ToUniversalTime();
            Room              = from.Room;
            ScheduleWeek      = from.ScheduleWeek;
            ScheduleType      = from.ScheduleType;
            LocationLatitude  = from.LocationLatitude;
            LocationLongitude = from.LocationLongitude;

            base.deserialize(from, changedProperties);
        }
Пример #4
0
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <PropertyNames> changedProperties)
        {
            ClassAttributeUnderClass from = item as ClassAttributeUnderClass;

            base.deserialize(from, changedProperties);
        }
Пример #5
0
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <PropertyNames> changedProperties)
        {
            TeacherUnderSchedule from = item as TeacherUnderSchedule;

            base.deserialize(from, changedProperties);
        }
        protected override void deserialize(PowerPlannerSending.BaseItem item, List <BaseDataItem.SyncPropertyNames> changedProperties)
        {
            ClassSubjectUnderClass from = item as ClassSubjectUnderClass;

            base.deserialize(from, changedProperties);
        }
Пример #7
0
 protected override void deserialize(PowerPlannerSending.BaseItem item, List <PropertyNames> changedProperties)
 {
     throw new NotImplementedException();
 }