Exemple #1
0
 /// <param name="affFile">"en_us.aff"</param>
 /// <param name="dicFile">"en_us.dic"</param>
 public NHunspellWrapper(string affFile, string dicFile,
                         ISpellingControl textEditor, ISpellingWindow spellForm)
 {
     try
     {
         hunspell     = new Hunspell(affFile, dicFile);
         spellingForm = spellForm;
         InitializeSpellingForm();
         Editor = textEditor;
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message + "\nAutoSpellchecking won't work. Place dictionary file to program directory."
                         , "Error loading spellchecker.",
                         MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1,
                         MessageBoxOptions.DefaultDesktopOnly);
     }
 }
Exemple #2
0
 public SpellingWorker(ISpellingControl control)
 {
     Editor = control;
 }