コード例 #1
0
        private void scanButton_Click(object sender, EventArgs e)
        {
            // Just scan 1 for now...
            ScannerControl control = new ScannerControl((int)numPagesInput.Value, twoSidesCheckbox.Checked);
            List<Image> images = control.Scan();

            if (images.Count > 0)
            {
                int id = Requests.CreateDocument();
                foreach (Image image in images)
                {
                    Requests.AddImageToDocument(id, image);
                }
                string formType = Requests.GetFormType(id);
                Requests.CreateWorklistItem(id, formType, "bank_regn");
                MessageBox.Show("Worklist item created");
            }
        }
コード例 #2
0
        private void scanButton_Click(object sender, EventArgs e)
        {
            // Just scan 1 for now...
            ScannerControl control = new ScannerControl((int)numPagesInput.Value, twoSidesCheckbox.Checked);
            List <Image>   images  = control.Scan();

            if (images.Count > 0)
            {
                int id = Requests.CreateDocument();
                foreach (Image image in images)
                {
                    Requests.AddImageToDocument(id, image);
                }
                string formType = Requests.GetFormType(id);
                Requests.CreateWorklistItem(id, formType, "bank_regn");
                MessageBox.Show("Worklist item created");
            }
        }