public PhrasesLangDetailDlg(Window owner, PhrasesLangViewModel vm, MLangPhrase item)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     tbPhrase.Focus();
     Owner                 = owner;
     vmDetail              = new PhrasesLangDetailViewModel(vm, item);
     DataContext           = vmDetail.ItemEdit;
     dgPhrases.DataContext = vmDetail.vmSinglePhrase;
 }
Beispiel #2
0
        public override async Task OnSettingsChanged()
        {
            await base.OnSettingsChanged();

            vmPhrasesLang = new PhrasesLangViewModel(vmSettings);
            if (dgPhrasesBase != null)
            {
                dgPhrasesBase.DataContext = vmPhrasesLang;
            }
        }
 public PhrasesLangPage()
 {
     InitializeComponent();
     BindingContext = vm = new PhrasesLangViewModel(AppShell.vmSettings, false);
 }
Beispiel #4
0
 public override async Task OnSettingsChanged()
 {
     DataContext         = vm = new PhrasesLangViewModel(MainWindow.vmSettings, needCopy: true);
     tcDicts.DataContext = this;
     await base.OnSettingsChanged();
 }