Пример #1
0
 private void txt_Stock_TextChanged(object sender, EventArgs e)
 {
     // if (System.Text.RegularExpressions.Regex.IsMatch(txt_Stock.Text, "[^0-9]"))
     // {
     //     MessageBox.Show("Solo Numeros");
     //     txt_Stock.Text = string.Empty;
     // }
     txt_Stock.Text = CValidacionesGenerales.ValidarNumero(txt_Stock.Text, txt_Stock);
 }
Пример #2
0
        private void txt_precio_TextChanged(object sender, EventArgs e)
        {
            // if (!System.Text.RegularExpressions.Regex.IsMatch(txt_Precio.Text, @"^\d{1,14}(?:\.\d{0,2}){0,1}$"))
            // {
            //     txt_Precio.Text = string.Empty;
            // }

            txt_Precio.Text = CValidacionesGenerales.ValidarDecimal(txt_Precio.Text, txt_Precio);
        }
Пример #3
0
 private void txt_Marca_TextChanged(object sender, EventArgs e)
 {
     txt_Marca.Text = CValidacionesGenerales.ValidarString(txt_Marca.Text, txt_Marca);
 }
Пример #4
0
 private void txt_Modelo_TextChanged(object sender, EventArgs e)
 {
     txt_Modelo.Text = CValidacionesGenerales.ValidarStringNum(txt_Modelo.Text, txt_Modelo);
 }
Пример #5
0
 private void txt_Locacion_TextChanged(object sender, EventArgs e)
 {
     txt_Locacion.Text = CValidacionesGenerales.ValidarString(txt_Locacion.Text, txt_LocacionMunicipio);
 }
Пример #6
0
 private void txt_LocacionNum_TextChanged(object sender, EventArgs e)
 {
     txt_LocacionNum.Text = CValidacionesGenerales.ValidarNumero(txt_LocacionNum.Text, txt_LocacionNum);
 }
Пример #7
0
 private void txt_ClienteNom_TextChanged(object sender, EventArgs e)
 {
     txt_ClienteNom.Text = CValidacionesGenerales.ValidarString(txt_ClienteNom.Text, txt_ClienteNom);
 }