コード例 #1
0
        private void butSpellCheck_Click(object sender, EventArgs e)
        {
            FormSpellChecker FormSC = new FormSpellChecker();

            FormSC.SetText(textDescription.Rtf);
            FormSC.ShowDialog();
            if (FormSC.DialogResult != DialogResult.OK)
            {
                return;
            }
            textDescription.Rtf = FormSC.TextRtf;
            textDescription.Focus();
        }
コード例 #2
0
ファイル: ODjobTextEditor.cs プロジェクト: kjb7749/testImport
        private void butSpellCheck_Click(object sender, EventArgs e)
        {
            if (_textFocused.ReadOnly)
            {
                return;
            }
            FormSpellChecker FormSC = new FormSpellChecker();

            FormSC.SetText(_textFocused.Rtf);
            FormSC.ShowDialog();
            if (FormSC.DialogResult != DialogResult.OK)
            {
                return;
            }
            _textFocused.Rtf = FormSC.TextRtf;
            _textFocused.Focus();
        }