private void Validar()
 {
     ValidacionRol = new ClasesBase.Clases.Rol(RolAEditar);
     ValidacionRol.PropertyChanged += new PropertyChangedEventHandler(ValidacionRol_PropertyChanged);
     btn_modificar.IsEnabled        = ValidacionRol.IsValid();
     DataContext = ValidacionRol;
 }
Esempio n. 2
0
        public AltaRol()
        {
            InitializeComponent();
            ValidacionRol = new ClasesBase.Clases.Rol();
            ValidacionRol.PropertyChanged += new PropertyChangedEventHandler(ValidacionRol_PropertyChanged);

            btn_registrar.IsEnabled = ValidacionRol.IsValid();

            DataContext = ValidacionRol;
        }
Esempio n. 3
0
 private void ValidacionRol_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     btn_registrar.IsEnabled = ValidacionRol.IsValid();
 }