public void SetTimeType(EventTimeType newTimeType)
 {
     if (newTimeType != EventTimeType.incremental)
     {
         sectionHours       = -1;
         numberOfIncrements = -1;
     }
     else if (newTimeType != EventTimeType.custom)
     {
         if (eventEndDate != null)
         {
             eventEndDate.emptyDate = true;
         }
     }
     eventTimeType = newTimeType;
 }
 public DispensaryEvent(EventType eventType_, EventTimeType eventTimeType_)
 {
     eventID   = Dispensary.GetUniqueDispensaryEventID();
     eventType = eventType_;
     SetTimeType(eventTimeType_);
 }
示例#3
0
 public GrowroomEvent(EventTimeType timeType) : base(EventType.growroom, timeType)
 {
 }
示例#4
0
 public SmokeLoungeEvent(EventTimeType timeType) : base(EventType.smokeLounge, timeType)
 {
 }
示例#5
0
 public GlassShopEvent(EventTimeType timeType) : base(EventType.glassShop, timeType)
 {
 }
 public EventTime(TimeSpan duration)
 {
     Duration       = duration;
     _eventTimeType = EventTimeType.FinalWithDuration;
 }
 private EventTime(EventTimeType eventTimeType)
 {
     _eventTimeType = eventTimeType;
     Duration       = default;
 }