Esempio n. 1
0
 private void Label2_Click(object sender, EventArgs e)
 {
     if (textBox2.Text.Equals(textBox3.Text))
     {
         int i = 0;
         con.Open();
         MySqlCommand cmd = con.CreateCommand();
         cmd.CommandType = CommandType.Text;
         cmd.CommandText = "INSERT INTO `u0613437_hacker`.`users` (`login`, `pass`) VALUES ('" + textBox1.Text + "', '" + textBox2.Text + "')";
         cmd.ExecuteNonQuery();
         DataTable        dt = new DataTable();
         MySqlDataAdapter da = new MySqlDataAdapter(cmd);
         da.Fill(dt);
         AUTH auth = new AUTH();
         auth.Visible = false;
         auth.Close();
         this.Visible = false;
         MAIN form1 = new MAIN();
         form1.ShowDialog();
     }
     else
     {
         con.Close();
         label6.Text      = "PASSWORD DON'T MATCH";
         label6.ForeColor = System.Drawing.Color.Red;
     }
 }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            AUTH auth = new AUTH();

            auth.Close();
            auth.Visible = false;
            player.PlayLooping();
        }