public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;
        }
        public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;
        }
        public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            EmptyLabel.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Italic);

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;
        }
Exemple #4
0
        public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            EmptyLabel.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Italic);

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;
        }
Exemple #5
0
        public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;

            if(AppSettings.ProvideAutocompletion)
              InitializeAutoCompleteWordsTask();
        }
        protected override void OnRuntimeLoad(EventArgs e)
        {
            base.OnRuntimeLoad(e);

            _customUnderlines         = new SpellCheckEditControl(TextBox);
            TextBox.SelectionChanged += TextBox_SelectionChanged;
            TextBox.TextChanged      += TextBoxTextChanged;

            EnabledChanged += EditNetSpellEnabledChanged;

            ShowWatermark();

            components = new Container();
            _spelling  = new Spelling(components)
            {
                ShowDialog            = false,
                IgnoreAllCapsWords    = true,
                IgnoreWordsWithDigits = true
            };

            if (AppSettings.ProvideAutocompletion)
            {
                InitializeAutoCompleteWordsTask();
                _autoCompleteListTask.ContinueWith(
                    w =>
                {
                    _spelling.AddAutoCompleteWords(w.Result.Select(x => x.Word));
                    w.Dispose();
                },
                    _autoCompleteCancellationTokenSource.Token,
                    TaskContinuationOptions.NotOnCanceled,
                    TaskScheduler.FromCurrentSynchronizationContext());
            }

            //
            // spelling
            //
            _spelling.ReplacedWord   += SpellingReplacedWord;
            _spelling.DeletedWord    += SpellingDeletedWord;
            _spelling.MisspelledWord += SpellingMisspelledWord;

            //
            // wordDictionary
            //
            LoadDictionary();

            SpellCheckTimer.Enabled = true;
        }
Exemple #7
0
        public EditNetSpell()
        {
            InitializeComponent();
            Translate();

            _customUnderlines = new SpellCheckEditControl(TextBox);

            SpellCheckTimer.Enabled = false;

            EnabledChanged += EditNetSpellEnabledChanged;

            if (AppSettings.ProvideAutocompletion)
            {
                InitializeAutoCompleteWordsTask();
            }
        }