public static NextWordChooser GetChooser()
 {
     if (_nextWordChooser == null)
     {
         _nextWordChooser = new RandomNextWordChooser(DictionaryInitializer.GetDictionary(), DictionaryWriterInitializer.GetWriter());
     }
     return(_nextWordChooser);
 }
Exemplo n.º 2
0
 private void InitializeComponentExt()
 {
     //TODO: Move Main view model from here
     //ReceiveEntityServiceHostInitializer.Initialize();
     DataContext = new MainViewModel(NextWordChooserInitializer.GetChooser(),
                                     DictionaryInitializer.GetDictionary(),
                                     DictionaryWriterInitializer.GetWriter(),
                                     EntityBuilderInitializer.GetEntityBuilder(),
                                     Config.Instance.DictionaryType);
 }