Пример #1
0
 public DB_SubCalendarEvent(SubCalendarEvent mySubCalEvent, NowProfile NowProfileData, Procrastination ProcrastinationData, CalendarEvent calendarEvent)
 {
     this.BusyFrame           = mySubCalEvent.ActiveSlot;
     this._CalendarEventRange = mySubCalEvent.getCalendarEventRange;
     this._Name              = mySubCalEvent.getName;
     this._EventDuration     = mySubCalEvent.getActiveDuration;
     this._Complete          = mySubCalEvent.getIsComplete;
     this._ConflictingEvents = mySubCalEvent.Conflicts;
     this._DataBlob          = mySubCalEvent.Notes;
     this._Enabled           = mySubCalEvent.isEnabled;
     updateEndTime(mySubCalEvent.End);
     this._EventPreDeadline         = mySubCalEvent.getPreDeadline;
     this._EventScore               = mySubCalEvent.Score;
     this._isEventRestricted        = mySubCalEvent.getIsEventRestricted;
     this._LocationInfo             = mySubCalEvent.LocationObj;
     this.OldPreferredIndex         = mySubCalEvent.OldUniversalIndex;
     this._otherPartyID             = mySubCalEvent.ThirdPartyID;
     this.preferredDayIndex         = mySubCalEvent.UniversalDayIndex;
     this._PrepTime                 = mySubCalEvent.getPreparation;
     this._Priority                 = mySubCalEvent.getEventPriority;
     this._ProfileOfNow             = NowProfileData;
     this._ProfileOfProcrastination = ProcrastinationData;
     this._RigidSchedule            = mySubCalEvent.isRigid;
     updateStartTime(mySubCalEvent.Start);
     this._UiParams      = mySubCalEvent.getUIParam;
     this.UniqueID       = mySubCalEvent.SubEvent_ID;
     this._AutoDeleted   = mySubCalEvent.getIsUserDeleted;
     this._Users         = mySubCalEvent.getAllUsers();
     this.Vestige        = mySubCalEvent.isVestige;
     this._Name          = mySubCalEvent.getName;
     this._Creator       = mySubCalEvent.getCreator;
     this._Users         = mySubCalEvent.getAllUsers();
     this._TimeZone      = mySubCalEvent.getTimeZone;
     this._calendarEvent = calendarEvent;
 }
Пример #2
0
        public DB_SubCalendarEventRestricted(SubCalendarEvent mySubCalEvent, DB_RestrictionProfile restrictionData, CalendarEventRestricted parentCalendarEvent, ReferenceNow now)
        {
            this.BusyFrame = mySubCalEvent.ActiveSlot;
            this.HardCalendarEventRange = mySubCalEvent.getCalendarEventRange;
            this._ProfileOfRestriction  = restrictionData;
            this.OldPreferredIndex      = mySubCalEvent.UniversalDayIndex;
            this._otherPartyID          = mySubCalEvent.ThirdPartyID;
            this.updateStartTime(mySubCalEvent.Start);
            this.updateEndTime(mySubCalEvent.End);



            //this.CalendarEventRange = CalendarEventRange.CreateCopy();
            this._Complete                 = mySubCalEvent.getIsComplete;
            this._ConflictingEvents        = mySubCalEvent.Conflicts;
            this._DataBlob                 = mySubCalEvent.Notes;
            this._Enabled                  = mySubCalEvent.isEnabled;
            this._ProfileOfProcrastination = mySubCalEvent.getProcrastinationInfo;
            this._EventDuration            = mySubCalEvent.getActiveDuration;
            this._Name             = mySubCalEvent.getName;
            this._EventPreDeadline = mySubCalEvent.getPreDeadline;
            //this.EventScore = mySubCalEvent.Score;
            //this.EventSequence = mySubCalEvent.EventSequence.CreateCopy();
            //this.HumaneTimeLine = mySubCalEvent.hum HumaneTimeLine.CreateCopy();
            //this.InterferringEvents = mySubCalEvent.inter
            this._isEventRestricted = true;
            this.Vestige            = mySubCalEvent.isVestige;
            this._LocationInfo      = mySubCalEvent.LocationObj;
            this.MiscIntData        = mySubCalEvent.IntData;
            //this.NonHumaneTimeLine = mySubCalEvent.NonHumaneTimeLine.CreateCopy();
            this._PrepTime      = mySubCalEvent.getPreparation;
            this._Priority      = mySubCalEvent.getEventPriority;
            this._RigidSchedule = mySubCalEvent.isRigid;

            this._UiParams      = mySubCalEvent.getUIParam;
            this.UniqueID       = mySubCalEvent.SubEvent_ID;
            this.UnUsableIndex  = 0;
            this._AutoDeleted   = mySubCalEvent.getIsUserDeleted;
            this._Name          = mySubCalEvent.getName;
            this._Creator       = mySubCalEvent.getCreator;
            this._Users         = mySubCalEvent.getAllUsers();
            this._TimeZone      = mySubCalEvent.getTimeZone;
            this._Now           = now;
            this._calendarEvent = parentCalendarEvent;
            initializeCalendarEventRange(restrictionData, this.HardCalendarEventRange);
        }