Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            currentUser.profileName = textBox10.Text;
            currentUser.CID         = SQLManager.GetIDFromCountry(comboBox1.SelectedItem.ToString()).ToString();

            SQLManager.UpdateUserProfile(currentUser);
        }
Beispiel #2
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!");
     }
 }