private void Insert_Click(object sender, RoutedEventArgs e) { ZakazEditView.IsEnabled = true; ZakazEditView.Visibility = Visibility.Visible; ZakazEditView.Initialize(); EditHeight.Height = new GridLength(350); }
private void Update_Click(object sender, RoutedEventArgs e) { if (ZakazTable.SelectedIndex >= 0) { ZakazCase Item = (dynamic)ZakazTable.SelectedItem; ZakazEditView.IsEnabled = true; ZakazEditView.Visibility = Visibility.Visible; ZakazEditView.Initialize(Item); EditHeight.Height = new GridLength(350); } }