private void AddNewItem_Click(object sender, RoutedEventArgs e) { Page dialog = getAddDialogPage(); CrudFrame.Navigate(dialog); EddingMode = true; }
private void AddNewItem_Click(object sender, RoutedEventArgs e) { try { Page dialog = getAddDialogPage(); CrudFrame.Navigate(dialog); EddingMode = true; } catch (Exception ex) { App.SendException(ex); } }
private void EditItem_Click(object sender, RoutedEventArgs e) { if (TableVideo360.SelectedItem == null && TableVideo5D.SelectedItem == null && TableGame.SelectedItem == null) { MessageBox.Show("Елемент не выбран"); return; } DataGrid SourseTable = getCurrentTable(); BaseContentEntity selectedItem = SourseTable.SelectedItem as BaseContentEntity; Page dialog = getEditialogPage(selectedItem); CrudFrame.Navigate(dialog); EddingMode = true; }