Esempio n. 1
0
 private TimeTypes(string Start, string Stop, int StartId, int StopId)
 {
     if (DateTime.TryParse(Start, out DateTime StartResult) && DateTime.TryParse(Stop, out DateTime StopResult))
     {
         Id    = nameof(TimeTypeEnum.Continuous);
         Name  = nameof(TimeTypeEnum.Continuous);
         Block = new ContinuousBlock(StartId, StopId, StartResult, StopResult);
     }
 }
Esempio n. 2
0
 private TimeTypes(DateTime Start, DateTime Stop, int StartId, int StopId)
 {
     Id    = nameof(TimeTypeEnum.Continuous);
     Name  = nameof(TimeTypeEnum.Continuous);
     Block = new ContinuousBlock(StartId, StopId, Start, Stop);
 }