示例#1
0
        private void btnHome_Click(object sender, EventArgs e)
        {
            cmbGebruiker.Text = null;
            tbVoornaam.Text = "";
            tbAchternaam.Text = "";
            tbGebruikersnaam.Text = "";
            tbWachtwoord.Text = "";
            tbControle.Text = "";
            cmbPermissie.Text = null;
            pbFoto.Image = null;

            Close();
            Home home = new Home();
            home.Show();
        }
示例#2
0
 private void btnHome_Click(object sender, EventArgs e)
 {
     Close();
     Home home = new Home();
     home.Show();
 }
示例#3
0
        private void LogInUser()
        {
            var login = from i in urent.Users
                        where i.gebruikersnaam == tbUsername.Text && i.wachtwoord == tbPassword.Text
                        select i;

            foreach (var persoon in login)
            {
                Program.Users = persoon;
            }

            int aantal = login.Count();
            if (aantal != 1)
            {
                MessageBox.Show("Gebruikersnaam of wachtwoord ongeldig.", "Ongeldig login", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                lblError.Text = "Wachtwoord vergeten?";
            }
            else
            {
                Home home = new Home();
                home.Show();
                Hide();
            }
        }