コード例 #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);
        }
コード例 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (currentUser.password == textBox12.Text)
            {
                if (textBox13.Text.Length >= 5 && textBox14.Text == textBox13.Text)
                {
                    currentUser.password = textBox13.Text;
                    SQLManager.UpdateUserProfile(currentUser);

                    textBox12.Text = null;
                    textBox13.Text = null;
                    textBox14.Text = null;
                }
                else
                {
                    MessageBox.Show("Passwords do not mach or too short!");
                }
            }
            else
            {
                MessageBox.Show("Incorrect old password!");
            }
        }