예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (SQLManager.Register(textBox1.Text, textBox2.Text, textBox3.Text, textBox5.Text, SQLManager.GetIDFromCountry(comboBox1.SelectedItem.ToString())))
     {
         this.Close();
     }
     else
     {
         MessageBox.Show("Register failed!");
     }
 }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     SQLManager.InsertInLibrary(currentUser, shopSelectedGame);
     UpdateLibrary();
 }