// ------------------------ VALIDACIONES FORMULARIO----------------------------- private string validarCamposRequeridos() { string resp = ""; if (UsuarioTextBox.Text.Length == 0) { resp += " Usuario \n"; } if (PasswordTextBox.Text.Length == 0) { resp += "Contraseña \n"; } if (tipoUsuario == TIPO_CLIENTE && altaClieForm.getCamposRequeridos().Length != 0) { resp += altaClieForm.getCamposRequeridos(); } if (tipoUsuario == TIPO_EMPRESA && altaEmpresaForm.getCamposRequeridos().Length != 0) { resp += altaEmpresaForm.getCamposRequeridos(); } return(resp); }