Esempio n. 1
0
        void dgDicts_RowDoubleClick(object sender, MouseButtonEventArgs e)
        {
            dgDicts.CancelEdit();
            var dlg = new DictsDetailDlg(Window.GetWindow(this), (MDictionary)((DataGridRow)sender).Item, vm);

            dlg.ShowDialog();
        }
Esempio n. 2
0
        void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new DictsDetailDlg(Window.GetWindow(this), vm.NewDictionary(), vm);

            if (dlg.ShowDialog() == true)
            {
                vm.Add(dlg.Item);
            }
        }