// 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); }
public void CloseStore() { // this is the default store state if (portalManager != null) { portalManager.ShutdownPortalManager(); } portalManager = null; // all controls disabled }
public void OpenStore() { // all controls enabled portalManager = new PortalManager(); portalManager.ShowPortalManager(); }