Exemple #1
0
 private void button5_Click_1(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "")
     {
         string   email = textBox1.Text;
         string   pwd   = textBox2.Text;
         string   query = "USE marathonskills2016;SELECT * FROM user WHERE Email = '" + email + "' AND Password = '******';";
         string[] data  = a.one_query(query);
         if (data[0] != null)
         {
             this.Hide();
             Form reg_sponsor = new Reg_sponsor();
             reg_sponsor.Show();
         }
     }
     else
     {
         MessageBox.Show("Введите данные!");
     }
 }
Exemple #2
0
 private void button8_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = Reg_sponsor.show();
 }