Beispiel #1
0
 public DictsDetailDlg(Window owner, MDictionary item, DictsViewModel vm)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     tbDictName.Focus();
     Owner                  = owner;
     vmDetail               = new DictsDetailViewModel(Item = item, vm);
     DataContext            = vmDetail.ItemEdit;
     cbLangTo.ItemsSource   = vm.vmSettings.LanguagesAll;
     cbDictType.ItemsSource = vm.vmSettings.DictTypeCodes;
 }
Beispiel #2
0
 public async Task OnSettingsChanged()
 {
     DataContext = vm = new DictsViewModel(MainWindow.vmSettings, needCopy: true);
 }