Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DALLogin lg = new DALLogin();

            if (lg.LoginUser(new Login {
                UserName = textBox1.Text, UserPass = textBox2.Text
            }))
            {
                Form1.MainPanel.Enabled = true;
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid User/Pass");
            }
        }