private void _cmbDocumentMode_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (_cmbDocumentMode.SelectedIndex)
            {
            case 0:  // File
                _createOcrDocumentOptions = (_tbOcrDocumentFile.Text.Length > 0) ? OcrCreateDocumentOptions.None : OcrCreateDocumentOptions.AutoDeleteFile;
                _lblHints.Text            = "In OCR document file mode you can only handle one page at a time, " +
                                            "so you can load one page, OCR it and then add it to the document, then " +
                                            "you can repeat the steps for other pages of your source document(s).\n\n" +
                                            "This is the RECOMMENDED mode to use when dealing with wide number of pages " +
                                            "since it saves your system memory and keeps the work on disk.";
                break;

            case 1:  // Memory
                _createOcrDocumentOptions = OcrCreateDocumentOptions.InMemory;
                _lblHints.Text            = "OCR document memory mode is ONLY recommended when dealing with a few number " +
                                            "of pages since each loaded page will remain in memory which will consume your " +
                                            "system memory.\n\n" +
                                            "Multi-page support is enabled when using this mode, you don't have to OCR the pages " +
                                            "before adding them to the OCR document while using the memory mode, you can do that even " +
                                            "after adding the pages to the document.";
                break;
            }

            UpdateUIState();
        }
        public CreateOcrDocumentDialog(string ocrDocumentFilePath)
        {
            InitializeComponent();

            _createOcrDocumentOptions = OcrCreateDocumentOptions.AutoDeleteFile;
            if (!string.IsNullOrEmpty(ocrDocumentFilePath))
            {
                _tbOcrDocumentFile.Text = ocrDocumentFilePath;
            }
        }