Example #1
0
 public AddWordForm(string wordToAdd, string fileName, SelectWordToAddForm form = null)
 {
     SetWord(wordToAdd);
     SetFileName(fileName);
     InitializeComponents();
     this.form = form;
 }
Example #2
0
        internal void AddUnknownWord(string fileName, string word, SelectWordToAddForm form = null)
        {
            if (!this.FileSelected())
            {
                Forms.MessageBox.Show(Strings.fileNotSelectedMessage, Strings.fileNotSelectedCaption);
                return;
            }

            if (!this.CanAddToDictionary(word))
            {
                Forms.MessageBox.Show(Strings.duplicateWordText, Strings.duplicateWordCaption);
                return;
            }

            //ask what column to put it in
            new AddWordForm(word, fileName, form).ShowDialog();
        }