예제 #1
0
        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");
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Login_Principal _Principal = new Login_Principal();

            _Principal.Show();
        }