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(); } }
public void Rollback() { wordRepository = new WordRepository(wordsLoader.RollBack()); }