Пример #1
0
 public PhrasesUnitDetailDlg(Window owner, PhrasesUnitViewModelWPF vm, MUnitPhrase item, int wordid)
 {
     InitializeComponent();
     SourceInitialized += (x, y) => this.HideMinimizeAndMaximizeButtons();
     tbPhrase.Focus();
     Owner                 = owner;
     vmDetail              = new PhrasesUnitDetailViewModel(vm, item, wordid);
     DataContext           = vmDetail.ItemEdit;
     dgPhrases.DataContext = vmDetail.vmSinglePhrase;
 }
Пример #2
0
 async Task Edit(MUnitPhrase item) =>
 await Shell.Current.GoToModalAsync(nameof(PhrasesUnitDetailPage), new PhrasesUnitDetailViewModel(vm, item, 0));