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!"); } }
private void button1_Click(object sender, EventArgs e) { SQLManager.InsertInLibrary(currentUser, shopSelectedGame); UpdateLibrary(); }