コード例 #1
0
ファイル: MainVM.cs プロジェクト: marytsuk/s02170244
 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());
 }
コード例 #2
0
 public CleanUpTargetSettingsPresenter(ICleanUpTargetSettingsControl control, IFolderDialog dialog)
 {
     this.control = control;
     this.dialog  = dialog;
 }