Exemplo n.º 1
0
 public C_System this[Guid Key, DateTime CurrentDate]
 {
     get
     {
         if (CurrentDate == new DateTime())
         {
             CurrentDate = DateTime.Now;
         }
         if (SystemList != null && SystemList.Count > 0)
         {
             var system = SystemList.ToList().Find(S => S.ID == Key);
             if (system != null && (system.VersionStart > CurrentDate || system.VersionEnd < CurrentDate))
             {
                 return(C_SystemOperator.Instance.GetSystemList(CurrentDate).ToList().Find(S => S.ID == Key));
             }
             return(system);
         }
         return(null);
     }
 }