コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            IngresarVehiculo = new ingresarVehiculo();
            ListarVehiculos  = new listarVehiculos();
            ReporteCobros    = new Reporte();
        }
コード例 #2
0
 // 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());
     }
 }