public void ShowRelatedFaces() { var range = GetSelectedVideoTimeRange(); var query = from p in _portraits where p.CaptureTime >= range.From && p.CaptureTime < range.To select p; foreach (var portrait in query) { _screen.AddFace(portrait); } }
public void ShowRelatedFaces() { var video = _screen.SelectedVideoFile; var from = Damany.Util.Extensions.MiscHelper.RoundToMinute(video.CapturedAt); var to = from.AddMinutes(1); var range = new DateTimeRange(from, to); var p = _portraitRepository.GetPortraits(_screen.SelectedCamera.Id, range); _screen.ClearFacesList(); foreach (var portrait in p) { _screen.AddFace(portrait); } }