コード例 #1
0
        // takes reference of the portal manager to be able to
        // send back order notification
        public InStorePortal(IPortalManager portalMgmt, uint portalID)
        {
            portalManager = portalMgmt;
            myPortalID    = portalID;

            // portal manager waits for new order updates from portals.
            SubscribeForUpdates(portalMgmt as ISubscriber);
        }
コード例 #2
0
        public void CloseStore()
        {
            // this is the default store state
            if (portalManager != null)
            {
                portalManager.ShutdownPortalManager();
            }
            portalManager = null;

            // all controls disabled
        }
コード例 #3
0
 public void OpenStore()
 {
     // all controls enabled
     portalManager = new PortalManager();
     portalManager.ShowPortalManager();
 }