Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            // Initialize modules, with our logging method.
            folderWatcher = new FolderWatcher(Log, Dispatcher);
            imageReviewer = new ImageReviewer(Log, Dispatcher);
            acceptMover   = new FileMover(Log, Dispatcher);
            rejectMover   = new FileMover(Log, Dispatcher);

            // Connect the modules in their intended orders.
            folderWatcher.Outputs.SetOutput(FolderWatcher.NextModule, imageReviewer);
            imageReviewer.Outputs.SetOutput(ImageReviewer.AcceptOutput, acceptMover);
            imageReviewer.Outputs.SetOutput(ImageReviewer.RejectOutput, rejectMover);

            // Load the first image whenever it's ready.
            nextImage();
        }
Ejemplo n.º 2
0
        public IActionResult ImageReviewer(ImageReviewer ImageReviewer)
        {
            ViewData["Result"] = service.getImageAsStringByPath(ImageReviewer.pathToImage);

            return(View(ImageReviewer));
        }