public void LoginUser() { if (v_Email.Text != "Usuario") { if (v_Password.Text != "Password") { Process ValidacionLogin = new Process(); var Log = ValidacionLogin.LoginUser(v_Email.Text, v_Password.Text); if (Log == true) { Login_Principal login = Owner as Login_Principal; /////<------Aquí this.Hide(); login.Hide(); DashBoard Menu_Principal = new DashBoard(); Menu_Principal.Show(); } else { MsgError("Usuario o Contraseña son Incorrectos"); } } else { MsgError("Please Enter Password"); } } else { MsgError("Please Enter Username"); } }
private void button1_Click(object sender, EventArgs e) { this.Hide(); Login_Principal _Principal = new Login_Principal(); _Principal.Show(); }