Ejemplo n.º 1
0
        /// <summary>
        /// Gets the current profile.
        /// </summary>
        /// <param name="customerID">The customer ID.</param>
        public void GetCurrentProfile(int customerID)
        {
            Hashtable hshCust = new Hashtable();
            try
            {
                CustomerData myData = new CustomerData();

                hshCust = myData.GetCurrentProfile(customerID);
                _customerid = customerID;
                _firstname = hshCust["firstname"].ToString();
                _lastname = hshCust["lastname"].ToString();
                _username = hshCust["username"].ToString();
                _age = Convert.ToInt32(hshCust["age"]);
                _creditcardtype = hshCust["creditcardtype"].ToString();
                _country = hshCust["country"].ToString();
                _city = hshCust["city"].ToString();
                _email = hshCust["email"].ToString();
                _region = hshCust["region"].ToString();
                _mailcode = hshCust["mailcode"].ToString();
                _password = hshCust["password"].ToString();
                _address1 = hshCust["address1"].ToString();
            }
            catch (Exception ex)
            {
                ErrorRoutine(ex, "Customer", "GetCurrentProfile");
            }
        }