private void btnModificar_Click(object sender, RoutedEventArgs e) { Modelos r = ((Button)sender).DataContext as Modelos; long lID = r.ID; Popups.Modelo w = new Popups.Modelo(lID); w.ShowDialog(); realizarBusqueda(new Modelos()); }
private void btnAdd_Click(object sender, RoutedEventArgs e) { Popups.Modelo w = new Popups.Modelo(); w.ShowDialog(); realizarBusqueda(new Modelos()); }