private void TxtValor_Leave(object sender, EventArgs e)
 {
     try
     {
         validarNumero = new ValidarNumero();
         TxtNota.Text  = validarNumero.Zero(TxtNota.Text);
         TxtNota.Text  = validarNumero.Formatar(TxtNota.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemple #2
0
 private void TxtValor_Leave(object sender, EventArgs e)
 {
     validarNumero = new ValidarNumero();
     TxtValor.Text = validarNumero.Zero(TxtValor.Text);
     TxtValor.Text = validarNumero.Formatar(TxtValor.Text);
 }
 private void TxtValor_LostFocus(object sender, RoutedEventArgs e)
 {
     validarNumero = new ValidarNumero();
     TxtValor.Text = validarNumero.Zero(TxtValor.Text);
     TxtValor.Text = validarNumero.Formatar(TxtValor.Text);
 }