private void btnSubmit_Click(object sender, EventArgs e)
 {
     dbp = new DBPOS();
     dbp.UpdateAccount(txtBxPasswordNew.Text,txtBxEmailNew.Text,user.Username);
     dbp.UpdateCustomer(txtBxFirstNameNew.Text, txtBxLastNameNew.Text, txtBxMobileNoNew.Text,user.Username);
     MessageBox.Show("Your account has been updated, without payment changes");
     this.Close();
 }
        private void btnUpdateCreditCard_Click(object sender, EventArgs e)
        {
            string cardType = "";
            if (radioMasterVisa.Checked)
            {
                cardType = radioMasterVisa.Text;
            }

            else if (radioAmericanExp.Checked)
            {
                cardType = radioAmericanExp.Text;
            }

            dbp = new DBPOS();
            dbp.UpdateAccount(txtBxEmailNew.Text, txtBxPasswordNew.Text, user.Username);
            dbp.UpdateCustomer(txtBxFirstNameNew.Text, txtBxLastNameNew.Text, txtBxMobileNoNew.Text, user.Username);
            dbp.InsertCreditCard(dbp.GetAccountID(user.Username), txtBxCreditCardName.Text, long.Parse(txtBxCreditCardNo.Text), dtpExpiryDate.Value, int.Parse(txtBxCVC.Text), int.Parse(txtBxSixDigitPIN.Text), cardType);

            MessageBox.Show("Your account has been updated, with payment changes");
            this.Close();

        }