コード例 #1
0
        public AltaAutobus()
        {
            InitializeComponent();
            ValidacionAutobus = new ClasesBase.Clases.Autobus();
            ValidacionAutobus.PropertyChanged += new PropertyChangedEventHandler(ValidacionCliente_PropertyChanged);

            btn_registrar.IsEnabled = ValidacionAutobus.IsValid();

            DataContext = ValidacionAutobus;
        }
コード例 #2
0
 private void ValidacionCliente_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     btn_registrar.IsEnabled = ValidacionAutobus.IsValid();
 }