예제 #1
0
 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;
 }
예제 #2
0
 async Task Edit(MLangPhrase item) =>
 await Shell.Current.GoToModalAsync(nameof(PhrasesLangDetailPage), new PhrasesLangDetailViewModel(vm, item));