Beispiel #1
0
        private void btnScan_Click(object sender, EventArgs e)
        {
            var res = new frmListOfScanner().ShowDialogResult() as frmListOfScanner;

            this.pictureEdit1.Image = res.scanImage;
            Scanners.ScanImage      = res.scanImage;
        }
Beispiel #2
0
        private void btnScan_Click(object sender, EventArgs e)
        {
            frmListOfScanner frmListOfScanner = new frmListOfScanner(scanner => { scanner.RefId = scanners.RefId; });
            var frm = frmListOfScanner.ShowDialogResult();

            scanners = frm.scanners;
            this.pctScanImage.Image = scanners.ScanImage;
        }