private void BtnIniciarSesion_Click(object sender, EventArgs e) { if (formRegistrarse != null) { string nombre = formRegistrarse.Usuarios[0].Nombre; string contraseña1 = formRegistrarse.Usuarios[0].Contrasena; string carrera = formRegistrarse.Usuarios[0].Carrera; string correo = formRegistrarse.Usuarios[0].Correo; string semestre = formRegistrarse.Usuarios[0].Semestre; formInicioSesion = new FormInicioSesion(this, nombre, contraseña1, carrera, correo, semestre); formInicioSesion.Show(); this.Hide(); } else { System.Windows.Forms.MessageBox.Show("No se ha registrado ningun usuario"); } }
private void BtnIniciarSesion_Click(object sender, EventArgs e) { formInicioSesion = new FormInicioSesion(this); formInicioSesion.Show(); this.Hide(); }