Ejemplo n.º 1
0
        private void bunifuFlatButton14_Click(object sender, EventArgs e)
        {
            //this.Hide();
            // ListsTests.Show();
            Main_user main_User = new Main_user();

            main_User.name = name;
            this.Hide();
            main_User.Show();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            informsysEntities context = new informsysEntities();
            Users             users   = context.Users.Where(p => p.username == Login.Text).FirstOrDefault();

            wrongdata.Visible = false;

            nameuser = users.username;

            if (users != null && users.passwordd == password.Text)
            {
                Main_user main_User = new Main_user();
                main_User.name = nameuser;
                this.Hide();
                main_User.Show();
            }
            else
            {
                wrongdata.Visible = true;
            }
        }