Exemplo n.º 1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            string     sql = @"select * from userinfo where username = '******' and password = '******';";
            DataAccess da  = new DataAccess();
            DataSet    ds  = da.ExecuteQuery(sql);

            if (ds.Tables[0].Rows.Count == 1)
            {
                LobbyForm f3 = new LobbyForm(metroTextBoxUsername.Text);
                f3.Show();
                this.Dispose();
            }
            else
            {
                MessageBox.Show("Incorrect Username or Password");
            }
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     lb.Show();
     this.Dispose();
 }