Fearsoulfire

Verificações

Jun 7th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1.         bool checktb = false;//Usar pra verificar os campos dps.
  2.             bool checkcb = false;//usar pra verificar os combobox dps.
  3.             if (tbFormExercicioFormDescricao.TextLength > 0 && tbFormExercicioFormExercicio.TextLength > 0)
  4.                 checktb = true;//Valores da textbox maiores que ""
  5.  
  6.             string cbformEquip = cbFormExercicioFormEquipamento.SelectedText;
  7.             string cbformDesc = cbFormExercicioFormTipo.SelectedText;;
  8.             if (cbformEquip.Length > 0 && cbformDesc.Length > 0)
  9.                 checkcb = true;//Valores da combobox maiores que ""
  10.  
  11.  
  12.             if (checktb == true && checkcb == true)
  13.             {
  14.         //codigo
  15.         }
  16.         else
  17.             {
  18.                MessageBox.Show("Por favor, Preencha os campos obrigatórios.");
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment