public MainPageViewModel()
 {
     if (!DesignerProperties.IsInDesignTool)
     {
         var languageContext = new LanguageContext();
         languageContext.Load(languageContext.GetLanguagesQuery(), LoadOpLanguageCallback, null);
         var wordtypeContext = new WordtypeContext();
         wordtypeContext.Load(wordtypeContext.GetWordtypesQuery(), LoadOpWordtypeCallback, null);
         _updateBasewordCommand = new RelayCommand(param => this.UpdateBaseword(),param => this.CanUpdateBaseword());
     }
 }
 public ApplicationViewModel()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     if (!DesignerProperties.IsInDesignTool)
     {
         var languageContext = new LanguageContext();
         languageContext.Load(languageContext.GetLanguagesQuery(), LanguageLoadOpCallback, null);
         var wordtypeContext = new WordtypeContext();
         wordtypeContext.Load(wordtypeContext.GetWordtypesQuery(), WordtypeLoadOpCallback, null);
     }
 }