Example #1
0
 private TimeTypes(TimeIncrements Increment, string Start, string Stop, int StartId, int StopId)
 {
     if (DateTime.TryParse(Start, out DateTime StartResult) && DateTime.TryParse(Stop, out DateTime StopResult))
     {
         Id    = nameof(TimeTypeEnum.Segmented);
         Name  = nameof(TimeTypeEnum.Segmented);
         Block = new SegmentedBlock(Increment, StartId, StopId, StartResult, StopResult);
     }
 }
Example #2
0
 private TimeTypes(TimeIncrements Increment, DateTime Start, DateTime Stop, int StartId, int StopId)
 {
     Id    = nameof(TimeTypeEnum.Segmented);
     Name  = nameof(TimeTypeEnum.Segmented);
     Block = new SegmentedBlock(Increment, StartId, StopId, Start, Stop);
 }