Пример #1
0
 private WordsManager()
 {
     try
     {
         configurator   = new ConfigLoader().LoadConfig();
         wordsLoader    = new WordsLoader(configurator);
         wordRepository = new WordRepository(wordsLoader.LoadLastFile());
         GetNextWordsList();
     }
     catch (Exception ex)
     {
         Loger.Write(ex.Message);
         //MessageBox.Show(ex.Message);
         Application.Current.Shutdown();
     }
 }
Пример #2
0
 public void Rollback()
 {
     wordRepository = new WordRepository(wordsLoader.RollBack());
 }