예제 #1
0
 private void btnModificar_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (ExpresionRegular.IsNumeric(this.txbId.Text.Trim()))
         {
             this.grbRegistrar.IsEnabled = true;
             this.btnGrabar.IsEnabled = true;
             this.btnCancelar.IsEnabled = true;
             this.tipoProceso = ETipoProceso.Modificar;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 private void btnNuevo_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         this.grbRegistrar.IsEnabled = true;
         this.LimpiarRegistro();
         this.btnCancelar.IsEnabled = true;
         this.btnGrabar.IsEnabled = true;
         this.imgCategoria.Source = null;
         this.tipoProceso = ETipoProceso.Nuevo;
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
        private void btnNuevo_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                this.tipoProceso = ETipoProceso.Nuevo;
                this.grbRegistrar.IsEnabled = true;
                this.btnGrabar.IsEnabled = true;
                this.btnCancelar.IsEnabled = true;
                this.btnModificar.IsEnabled = false;
                this.LimpiaRegistro();
            }
            catch (Exception)
            {

                throw;
            }
        }