Example #1
0
 private void Validar()
 {
     ValidacionPasaje = new ClasesBase.Clases.Pasaje(Pasaje);
     ValidacionPasaje.PropertyChanged += new PropertyChangedEventHandler(ValidacionPasaje_PropertyChanged);
     btn_registrar.IsEnabled           = ValidacionPasaje.IsValidVentaPasaje();
     DataContext = ValidacionPasaje;
 }
Example #2
0
 private void ValidacionPasaje_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     btn_registrar.IsEnabled = ValidacionPasaje.IsValidVentaPasaje();
 }