示例#1
0
 public SmartCollection<TimePoint> GetSampleTestTimePoints(int timePointParentId)
 {
     SmartCollection<TimePoint> results = new SmartCollection<TimePoint>();
     if (AppLib.DesignMode)
     {
         LoadMockDataSampleTestTimePoints(ref results);
     }
     else
     {
         try
         {
             using (SampleDAO ordersDao = new SampleDAO())
             {
                 results = ordersDao.GetSampleTestTimePoints(ordersDao.GetSampleTest(timePointParentId, new Identification()));
             }
         }
         catch (Exception)
         {
             throw;
         }
     }
     return results;
 }