public MainWindow() { InitializeComponent(); IngresarVehiculo = new ingresarVehiculo(); ListarVehiculos = new listarVehiculos(); ReporteCobros = new Reporte(); }
// Ventana Hija para hacer el cobro de un veh;iculo ingresado private void Salida_Selected(object sender, RoutedEventArgs e) { try { listarVehiculos ListarVehiculos1 = new listarVehiculos(); ContenedorPrincipal.Children.Add(ListarVehiculos1); ContenedorPrincipal.Children.Remove(IngresarVehiculo); ContenedorPrincipal.Children.Remove(ReporteCobros); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }