Example #1
0
        public ForumModule(ISessionManager sessionManager)
        {
            _sessionManager = sessionManager;

            this._currentAction = ForumModuleAction.ForumList;

            _categorySortBy			= CategorySortBy.Name;
            _forumSortBy			= ForumSortBy.Name;
            _forumPostSortBy		= ForumPostSortBy.DateCreated;
            _categorySortASC = true;
            _forumSortASC = true;
            _forumPostSortASC = true;

            this._forumthemepath = UrlHelper.GetApplicationPath() + "Modules/Forum/Images/Standard/";
        }
        public ShopModule(ISessionManager sessionManager)
		{
            _sessionManager = sessionManager;

            ISession session = this._sessionManager.OpenSession();

            this._currentAction = ShopModuleAction.ShopList;

			_categorySortBy			= CategorySortBy.Name;
            _categorySortASC = true;
			_shopSortBy			= ShopSortBy.Name;
            _shopSortASC = true;
			_shopProductSortBy		= ShopProductSortBy.DateCreated;
            _productSortASC = true;

			this._shopthemepath = UrlHelper.GetApplicationPath() + "Modules/Shop/Images/Standard/";

            this.ReadSectionSettings();
		}