public MainVM(IFolderDialog dialog, Dispatcher disp = null) { dispatcher = disp; folderDialog = dialog; openCommand = new MyCommand(_ => { return(true); }, _ => SelectDirectory()); recognizeCommand = new MyCommand(_ => { return(Images.Count() > 0); }, _ => RecognizeFunck()); stopCommand = new MyCommand(_ => { return(Images.Count() > 0); }, _ => imageRecognizer.Cancel()); selectCommand = new MyCommand(_ => { return(ClassVMs.Count() > 0); }, _ => SelectImgs()); clearCommand = new MyCommand(_ => { return(db != null); }, _ => ClearDB()); showCommand = new MyCommand(_ => { return(true); }, _ => GetStatistics()); }
public CleanUpTargetSettingsPresenter(ICleanUpTargetSettingsControl control, IFolderDialog dialog) { this.control = control; this.dialog = dialog; }