Пример #1
0
 public bool Validar()
 {
     if (string.IsNullOrEmpty(DescripcionrichTextBox.Text))
     {
         errorProvider1.SetError(DescripcionrichTextBox, "Llenar Descripcion");
         return(false);
     }
     if (string.IsNullOrEmpty(PrecionumericUpDown.ToString()))
     {
         errorProvider1.SetError(PrecionumericUpDown, "No debes dejar el campo vacio!!!");
         return(false);
     }
     return(true);
 }