Beispiel #1
0
        private void _okButton_Click(object sender, EventArgs e)
        {
            try
            {
                using (WaitCursor wait = new WaitCursor())
                {
                    OcrXmlOutputOptions options = ((MyMode)_modeComboBox.SelectedItem).Options;
                    _ocrDocument.SaveXml(_fileNameTextBox.Text, options);

                    System.Threading.Thread.Sleep(1000);
                    System.Diagnostics.Process.Start(_fileNameTextBox.Text);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, DemosGlobalization.GetResxString(GetType(), "Resx_Error"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                DialogResult = DialogResult.None;
            }
        }
Beispiel #2
0
 public MyMode(string n, OcrXmlOutputOptions o)
 {
     Name    = n;
     Options = o;
 }
Beispiel #3
0
 private void _okButton_Click(object sender, EventArgs e)
 {
     _outputOptions = ((MyMode)_modeComboBox.SelectedItem).Options;
     _fileName      = _fileNameTextBox.Text;
 }