Exemple #1
0
        public DictionaryWindow(MainWindow win)
        {
            InitializeComponent();
            mainWindow  = win;
            wordsLoader = new WordsLoader(this);
            if (!win.DisplayDictionaryErrors(wordsLoader.errorType))
            {
                List <Word> tempList = wordsLoader.GetWords();
                wordsFromDictionary = new List <Word>(tempList.Count());
                foreach (Word w in tempList)
                {
                    wordsFromDictionary.Add(w);
                }
                //wordsLoader.GetWords().Clo(wordsFromDictionary.ToArray());

                PrintExistingWordsList(wordsLoader.GetWords());
                this.ShowDialog();
            }
        }