public IEnumerable <TrackData> GetBySamples(int numberOfSamples, TrackDBFilter filterOptions) { switch (filterOptions) { case TrackDBFilter.All: return(db.ToList()); case TrackDBFilter.EyeBothFound: IEnumerable <TrackData> qBothEyesFound = from td in db where td.LeftROI.Width != 0 && td.RightROI.Width != 0 select td; return(qBothEyesFound); case TrackDBFilter.EyeLeftFound: IEnumerable <TrackData> qLeftEyeFound = from td in db where td.LeftROI.Width != 0 select td; return(qLeftEyeFound); case TrackDBFilter.EyeRightFound: IEnumerable <TrackData> qRightEyeFound = from td in db where td.RightROI.Width != 0 select td; return(qRightEyeFound); } return(db.ToList()); }
public List <TrackData> GetByTime(int milliseconds, TrackDBFilter filterOptions) { return(db.ToList()); }
public List<TrackData> GetByTime(int milliseconds, TrackDBFilter filterOptions) { return db.ToList(); }
public IEnumerable<TrackData> GetBySamples(int numberOfSamples, TrackDBFilter filterOptions) { switch (filterOptions) { case TrackDBFilter.All: return db.ToList(); case TrackDBFilter.EyeBothFound: IEnumerable<TrackData> qBothEyesFound = from td in db where td.LeftROI.Width != 0 && td.RightROI.Width != 0 select td; return qBothEyesFound; case TrackDBFilter.EyeLeftFound: IEnumerable<TrackData> qLeftEyeFound = from td in db where td.LeftROI.Width != 0 select td; return qLeftEyeFound; case TrackDBFilter.EyeRightFound: IEnumerable<TrackData> qRightEyeFound = from td in db where td.RightROI.Width != 0 select td; return qRightEyeFound; } return db.ToList(); }