Exemple #1
0
    public string GetCategoryProps(int CatNumber, int Number = 0)
    {
        string[] CatsPropsList = new string[FieldsCount];
        string   Name          = GetNameCategory(CatNumber);

        CatsPropsList[pName]         = Name;
        CatsPropsList[pCatNumber]    = CatNumber.ToString();
        CatsPropsList[pSubCatNumber] = Number.ToString();
        CatsPropsList[pCaption]      = Database.GetItemByID(Name, Number, "Caption");
        CatsPropsList[pIsTileGrid]   = Database.GetItemByID(Name, Number, "IsTileGrid");
        CatsPropsList[pIsPhotoAlbum] = Database.GetItemByID(Name, Number, "IsPhotoAlbum");
        CatsPropsList[pDescription]  = Database.GetItemByID(Name, Number, "Description");
        CatsPropsList[pIsArticle]    = Database.GetItemByID(Name, Number, "IsArticle");
        CatsPropsList[pViewed]       = Database.GetItemByID(Name, Number, "Viewed");
        return(string.Join(";", CatsPropsList));
    }