public ReviewWindowViewModel(ISingleMouse model, Dictionary <ISingleFile, IMouseDataResult> results, string artFile) { ObservableCollection <SingleFileViewModel> videos = new ObservableCollection <SingleFileViewModel>(); foreach (ISingleFile singleFile in model.VideoFiles) { SingleFileViewModel vm = new SingleFileViewModel(singleFile, artFile); IMouseDataResult data = results[singleFile]; if (data != null) { vm.VideoOutcome = data.VideoOutcome; if (data.VideoOutcome != SingleFileResult.Ok) { vm.Comments = data.Message; } else { vm.Comments = data.MainBehaviour; } } videos.Add(vm); } SingleFiles = videos; Model = model; Results = results; ArtFile = artFile; GapDistanceMin = 5; GapDistanceMax = 300; BinaryThresholdMin = 0; BinaryThresholdMax = 255; BinaryThreshold2Min = 0; BinaryThreshold2Max = 255; Name = Model.Name; Age = Model.Age; Type = Model.Type; SelectedVideo = SingleFiles.First(); }
public SingleFilesProducer(SingleFiles singlefiles, ITargetBlock<FileInformation> target) { this._singlefiles = singlefiles; this._target = target; this._filter = new FileFilter(); }