public ManageDocumentsViewModel(EnhanceImage image) { BackHomeCommand = new DelegateCommand(NavigateBack); Directories = new Root(); //foreach(var drive in drives) //{ // Directories.Add(new FileInfo(drive.RootDirectory.FullName)); //} }
public void Scan() { if (SelectedScanner == null) { return; } try { var image = scannerService.Scan(SelectedScanner.Device, ColorDepth, Resolution); Image = new EnhanceImage { Bitmap = new Bitmap(image) }; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public ActionResult ManageDocuments(EnhanceImage image) { return(Page(new ManageDocumentsViewModel(image))); }