Exemple #1
0
 public UCListaVehiculos(tallerEntities ent)
 {
     InitializeComponent();
     tallerEnt   = ent;
     mvVehiculo  = new MVVehiculos(tallerEnt);
     DataContext = mvVehiculo;
 }
        public UCVehiculoNuevo(tallerEntities ent)
        {
            InitializeComponent();
            tallerEnt        = ent;
            mvVehiculo       = new MVVehiculos(tallerEnt);
            this.DataContext = mvVehiculo;

            this.AddHandler(Validation.ErrorEvent, new RoutedEventHandler(mvVehiculo.OnErrorEvent));
            mvVehiculo.btnGuardar = btnGuardarVehiculo;
        }