예제 #1
0
        public ManageDocumentsViewModel(EnhanceImage image)
        {
            BackHomeCommand = new DelegateCommand(NavigateBack);

            Directories = new Root();

            //foreach(var drive in drives)
            //{
            //    Directories.Add(new FileInfo(drive.RootDirectory.FullName));
            //}
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public ActionResult ManageDocuments(EnhanceImage image)
 {
     return(Page(new ManageDocumentsViewModel(image)));
 }