Exemple #1
0
 private void Insert_Click(object sender, RoutedEventArgs e)
 {
     ProductCategoryEditView.IsEnabled  = true;
     ProductCategoryEditView.Visibility = Visibility.Visible;
     ProductCategoryEditView.Initialize();
     EditHeight.Height = new GridLength(120);
 }
Exemple #2
0
 private void Update_Click(object sender, RoutedEventArgs e)
 {
     if (ProductCategoryTable.SelectedIndex >= 0)
     {
         ProductCase Item = (dynamic)ProductCategoryTable.SelectedItem;
         ProductCategoryEditView.IsEnabled  = true;
         ProductCategoryEditView.Visibility = Visibility.Visible;
         ProductCategoryEditView.Initialize(Item);
         EditHeight.Height = new GridLength(120);
     }
 }