diff --git a/PROMS/VEPROMS User Interface/veproms.dct b/PROMS/VEPROMS User Interface/veproms.dct new file mode 100644 index 00000000..43a1fb4f Binary files /dev/null and b/PROMS/VEPROMS User Interface/veproms.dct differ diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 8b2d395f..001930de 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; - +using System.IO; using System.Drawing; using System.Data; using System.Text; @@ -2698,6 +2698,18 @@ namespace Volian.Controls.Library { _C1SpellChecker2 = new C1.Win.C1SpellChecker.C1SpellChecker(); _C1SpellChecker2.ContextMenuCreated += new C1.Win.C1SpellChecker.ContextMenuEventHandler(_C1SpellChecker2_ContextMenuCreated); + // The veproms.dct file is the main spell checker dictionary. + // We edited the C1 dictionary (C:\Program Files\ComponentOne\Dictionaries\C1Spell_en-US.dct) using ComponentOne's + // dictionary editor (C:\Program Files\ComponentOne\Studio for WinForms\C1SpellChecker\C1DictionaryEditor.exe) + // and added the veproms.words list as another word list in the dictionary. We saved the resulting file as veproms.dct. + string dictpath = string.Format(@"{0}\veproms.dct", Application.StartupPath); + + // Only use the veproms.dct if it is found in the BIN folder. Otherwise, let it default to use the standard dictionary. + if (File.Exists(dictpath)) + _C1SpellChecker2.MainDictionary.FileName = dictpath; // looks in the bin folder by default + + // NOTE: By default, a "Custom.dct" file (UserDictionary) will be created in the BIN folder when a user adds words to the + // spell checker dictionary. The words that the user adds are not placed in the Volian.dct file. //_C1SpellChecker2.UserDictionary.FileName = @"C:\Development\proms\VEPROMS User Interface\bin\Debug\MYDictionary.dct"; } return StepRTB._C1SpellChecker2;