Ejemplo n.º 1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            MemberPage mp = new MemberPage("labiba");

            this.Hide();
            mp.Show();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            nameBox = textBox4.Text;
            passBox = textBox2.Text;
            //List<List<string>> result = new List<List<string>>();
            string query = "select * from user where name = '" + nameBox + "' and password = '******'";

            MessageBox.Show(query);
            string conq = " where name = '" + nameBox + "' and '" + passBox + "'";

            try
            {
                if (db.SelectAll("user", conq))
                {
                    MemberPage mp = new MemberPage(nameBox);
                    this.Hide();
                    mp.Show();
                }
                else
                {
                    MessageBox.Show("invalid input!");
                }
            }catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Ejemplo n.º 3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     MemberPage mp = new MemberPage(name);
 }