Beispiel #1
0
        private void buttonEditDB_Click(object sender, EventArgs e)
        {
            var form = new VobSubNOcrEdit(_nocrChars, pictureBoxInspectItem.Image as Bitmap);

            form.ShowDialog(this);
        }
Beispiel #2
0
        private void buttonLineOcrEditLanguage_Click(object sender, EventArgs e)
        {
            if (_nOcrDb == null)
            {
                if (string.IsNullOrEmpty(GetNOcrLanguageFileName()))
                {
                    MessageBox.Show("No line OCR language loaded - please re-install");
                    return;
                }
                LoadNOcrWithCurrentLanguage();
            }

            using (var form = new VobSubNOcrEdit(_nOcrDb.OcrCharacters, null))
            {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    SaveNOcrWithCurrentLanguage();
                }
                else
                {
                    LoadNOcrWithCurrentLanguage();
                }
            }
        }
 private void buttonEditDB_Click(object sender, EventArgs e)
 {
     var form = new VobSubNOcrEdit(_nocrChars, pictureBoxInspectItem.Image as Bitmap);
     form.ShowDialog(this);
 }