Beispiel #1
0
        public void MakeDicEditorForm(string nowOcrString, bool isUseJpnFlag, string dicFileText)
        {
            if (MyDicEditorForm == null)
            {
                DicEditorForm form = new DicEditorForm(nowOcrString, isUseJpnFlag, dicFileText);
                MyDicEditorForm = form;

                form.Name          = "DicEditorForm";
                form.StartPosition = FormStartPosition.Manual;

                Form1.PDelegateSetSpellCheck PDsetSpellCheck = new Form1.PDelegateSetSpellCheck(MyMainForm.setSpellCheck);
                form.SetSpellCheckFunction(PDsetSpellCheck);
            }
            MyDicEditorForm.Location = new Point(Screen.PrimaryScreen.Bounds.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2);
            MyDicEditorForm.Activate();

            MyDicEditorForm.Show();
        }
Beispiel #2
0
 public void SetSpellCheckFunction(Form1.PDelegateSetSpellCheck newFunction)
 {
     setSpellCheck = newFunction;
 }