Ejemplo n.º 1
0
 /// <summary>
 /// Registers this instance.
 /// </summary>
 public void Register()
 {
     Hashtable hshCust = new Hashtable();
     try
     {
         CustomerData myData = new CustomerData();
         hshCust["username"] = _username;
         hshCust["firstname"] = _firstname;
         hshCust["lastname"] = _lastname;
         hshCust["age"] = _age;
         hshCust["address1"] = _address1;
         hshCust["city"] = _city;
         hshCust["mailcode"] = _mailcode;
         hshCust["region"] = _region;
         hshCust["email"] = _email;
         hshCust["country"] = _country;
         hshCust["creditcardtype"] = _creditcardtype;
         hshCust["password"] = _password;
         _customerid = myData.Register(hshCust);
     }
     catch (Exception ex)
     {
         ErrorRoutine(ex, "Customer", "Register");
     }
 }