private void button1_Click_1(object sender, EventArgs e) { label3.Visible = false; Usuario user = new Usuario { correo = textBox1.Text, contraseña = textBox4.Text }; string h = service.AddUsuario(user); if (h != "Errror creating Usuario") { int a = service.GetUsuarioId(user.correo); string str = comboBox1.Text; Perfil perfil = new Perfil { nombre = textBox2.Text, nombreusuario = textBox3.Text, idusuario = a, genero = str }; service.AddPerfil(perfil); FormPaginaPrincipal f2 = new FormPaginaPrincipal(perfil); f2.Show(); this.Hide(); } else { label3.Visible = true; } }