OnlinePhotoShop.ShoppingCart Class
Class that stores a number of shopping items associated with a unique key. This class and the items stored in it are serializable and allow the class to be stored within a Session object even when using ASP Session State Service.

Access: Public
Base Classes: Hashtable
Implemented interfaces: ISerializable
  Members Description  
    mNextKey Private enumerator for unique numbers. This enumerator is incremented every time a new item is added to the list.

 
    mID Private storage for unique identifier string (SessionID). This string is used to generate server side file names for uploaded images.

 
    GetObjectData The serialization function.

 
    ShoppingCart The deserialization constructor.

 
    ShoppingCart Constructor.

 
    AddItem Adds a new item to the shopping cart.

 
    GetTotalOrder Computes the total of all items in the shopping cart.

 
    GetTotalWeight Computes the total weight of all items in the shopping cart.