public Perfil(Form parent) { InitializeComponent(); this.parent = parent; lb_datos.Text = Clase_Controladora.getNombre() + " " + Clase_Controladora.getApellido() + " - " + Clase_Controladora.getCuenta(); lb_nombres.Text = Clase_Controladora.getNombre(); lb_apellidos.Text = Clase_Controladora.getApellido(); lb_cuenta.Text = Clase_Controladora.getCuenta(); lb_dpi.Text = Clase_Controladora.getDpi(); lb_correo.Text = Clase_Controladora.getCorreo(); }
private void entrar_Click(object sender, EventArgs e) { string cuenta = textcuenta.Text; string password = textcontra.Text; bool resultado = Clase_Controladora.Login(cuenta, password); if (resultado == true) { MessageBox.Show("Bienvenido " + Clase_Controladora.getNombre() + " " + Clase_Controladora.getApellido()); textcuenta.Clear(); textcontra.Clear(); Perfil perfil = new Perfil(this); perfil.Show(); this.Hide(); } else { MessageBox.Show("ERROR\nEl nombre de usuario o el password son incorrectos"); textcontra.Clear(); textcuenta.Clear(); } }