예제 #1
0
        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);
     }
 }
예제 #3
0
        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;
        }