Пример #1
0
        void miEditWord_Click(object sender, RoutedEventArgs e)
        {
            // https://stackoverflow.com/questions/16236905/access-parent-window-from-user-control
            var dlg = new WordsUnitDetailDlg(Window.GetWindow(this), vm, SelectedWordItem, 0);

            dlg.ShowDialog();
        }
Пример #2
0
        public void AddNewUnitWord(int phraseid)
        {
            var item = vm.NewUnitWord();
            var dlg  = new WordsUnitDetailDlg(Window.GetWindow(this), vm, item, phraseid);

            dlg.ShowDialog();
        }