private void Validar()
        {
            ValidacionPasaje = new ClasesBase.Clases.Pasaje(PasajeAEditar);

            ValidacionPasaje.PropertyChanged += new PropertyChangedEventHandler(ValidacionPasaje_PropertyChanged);
            btn_modificar.IsEnabled           = ValidacionPasaje.IsValid();
            DataContext = ValidacionPasaje;
        }
Esempio n. 2
0
        public AltaPasaje()
        {
            InitializeComponent();

            ValidacionPasaje = new ClasesBase.Clases.Pasaje();
            ValidacionPasaje.PropertyChanged += new PropertyChangedEventHandler(ValidacionPasaje_PropertyChanged);

            btn_registrar.IsEnabled = ValidacionPasaje.IsValid();

            DataContext = ValidacionPasaje;

            controladorServicio      = new ControladorServicio();
            cmb_Servicio.ItemsSource = controladorServicio.List_Servicio().DefaultView;
        }
Esempio n. 3
0
 private void ValidacionPasaje_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     btn_registrar.IsEnabled = ValidacionPasaje.IsValid();
 }