public SmartCollection<SampleAnalyte> GetSampleAnalytes(int id)
 {
     SmartCollection<SampleAnalyte> results = new SmartCollection<SampleAnalyte>();
     if (AppLib.DesignMode) {
         LoadMockDataSampleAnalytes(ref results);
     }else {
         try {
             using (SampleDAO ordersDao = new SampleDAO()) {
                 results = ordersDao.GetSampleAnalytes(id);
             }
         }catch (Exception) {
             throw;
         }
     }
     return results;
 }