Example #1
0
        void miEditPhrase_Click(object sender, RoutedEventArgs e)
        {
            // https://stackoverflow.com/questions/16236905/access-parent-window-from-user-control
            var dlg = new PhrasesUnitDetailDlg(Window.GetWindow(this), vm, SelectedPhraseItem, 0);

            dlg.ShowDialog();
        }
Example #2
0
        public void AddNewUnitPhrase(int wordid)
        {
            var item = vm.NewUnitPhrase();
            var dlg  = new PhrasesUnitDetailDlg(Window.GetWindow(this), vm, item, wordid);

            dlg.ShowDialog();
        }