private void BtnNuevoConductor_Click(object sender, RoutedEventArgs e) { AgregarConductor agregarConductor = new AgregarConductor(0, this); GridConductor.Children.Clear(); GridConductor.Children.Add(agregarConductor); }
private void Button_Modificar_Click(object sender, RoutedEventArgs e) { int idConductor = (int)((Button)sender).CommandParameter; AgregarConductor agregarConductor = new AgregarConductor(idConductor, this); GridConductor.Children.Clear(); GridConductor.Children.Add(agregarConductor); llenarTablaConductores(); }