Beispiel #1
0
        public DB_SubCalendarEvent(CalendarEvent calendarEvent, TilerUser Creator, TilerUserGroup users, string timeZone, string MySubEventID, EventName name, BusyTimeLine MyBusylot, DateTimeOffset EventStart, DateTimeOffset EventDeadline, TimeSpan EventPrepTime, string myParentID, bool Rigid, bool Enabled, EventDisplay UiParam, MiscData Notes, bool completeFlag, TilerElements.Location EventLocation = null, TimeLine calendarEventRange = null, ConflictProfile conflicts = null)
        {
            if (EventDeadline < EventStart)
            {
                throw new Exception("SubCalendar Event cannot have an end time earlier than the start time");
            }
            _TimeZone = timeZone;
            _Name     = name;
            _Creator  = Creator;
            _Users    = users;
            if (conflicts == null)
            {
                conflicts = new ConflictProfile();
            }
            _ConflictingEvents  = conflicts;
            _CalendarEventRange = calendarEventRange;
            //string eventName, TimeSpan EventDuration, DateTimeOffset EventStart, DateTimeOffset EventDeadline, TimeSpan EventPrepTime, TimeSpan PreDeadline, bool EventRigidFlag, bool EventRepetition, int EventSplit
            updateStartTime(EventStart);
            updateEndTime(EventDeadline);
            _EventDuration     = MyBusylot.End - MyBusylot.Start;
            BusyFrame          = MyBusylot;
            _PrepTime          = EventPrepTime;
            UniqueID           = new EventID(MySubEventID);
            this._LocationInfo = EventLocation;

            _UiParams = UiParam;
            _DataBlob = Notes;
            _Complete = completeFlag;

            this._Enabled = Enabled;
            //EventSequence = new EventTimeLine(UniqueID.ToString(), StartDateTime, EndDateTime);
            _RigidSchedule = Rigid;
            _LastReasonStartTimeChanged = this.Start;
            _calendarEvent = calendarEvent;
        }
Beispiel #2
0
 public DB_ProcrastinateAllSubCalendarEvent(TilerUser user, TilerUserGroup group, string timeZone, TimeLine timeLine, EventID calendarEventId, TilerElements.Location location, ProcrastinateCalendarEvent calendarEvent, bool isEnabled, bool isCompleted) : base(user, group, timeZone, timeLine, calendarEventId, location, calendarEvent)
 {
     this._TimeZone = timeZone;
     updateStartTime(timeLine.Start);
     updateEndTime(timeLine.End);
     this._RigidSchedule            = true;
     this.UniqueID                  = calendarEventId;
     this._Creator                  = user;
     this._Users                    = group;
     this._Enabled                  = isEnabled;
     this._Complete                 = isCompleted;
     this._ProfileOfNow             = new NowProfile();
     this._ProfileOfProcrastination = new Procrastination(new DateTimeOffset(), new TimeSpan());
     _isProcrastinateEvent          = true;
     this._calendarEvent            = calendarEvent;
 }
Beispiel #3
0
 public DB_ProcrastinateCalendarEvent(EventID procrasstinaeAllId, EventName NameEntry, DateTimeOffset StartData, DateTimeOffset EndData, TimeSpan EventDuration, TimeSpan eventPrepTime, TimeSpan PreDeadlineTimeSpan, Repetition EventRepetitionEntry, TilerElements.Location EventLocation, EventDisplay UiData, MiscData NoteData, bool EnabledEventFlag, bool CompletionFlag, TilerUser creator, TilerUserGroup users, string timeZone, int splitCount, NowProfile nowProfile) : base(procrasstinaeAllId, NameEntry, StartData, EndData, EventDuration, eventPrepTime, PreDeadlineTimeSpan, EventRepetitionEntry, EventLocation, UiData, NoteData, EnabledEventFlag, CompletionFlag, creator, users, timeZone, splitCount, nowProfile)
 {
     UniqueID = procrasstinaeAllId;
 }