public CatalogItem(Catalog cat, CatalogDataset.CatalogItemsRow row)
        {
            currentRow = row;
            _cat       = cat;

#if HAVE_COUNTERS_DISPLAY
            _totalChildrenCount = -1;
#endif
        }
        public CatalogItem(Catalog cat)
        {
            currentRow             = cat.CatalogItems.NewCatalogItemsRow();
            currentRow.DateCreated = DateTime.Now;
            cat.CatalogItems.AddCatalogItemsRow(currentRow);
            _cat = cat;

#if HAVE_COUNTERS_DISPLAY
            _totalChildrenCount = -1;
#endif
        }
Пример #3
0
        private bool CheckRowAncestorship(CatalogDataset.CatalogItemsRow row)
        {
            if (row != null)
            {
                if (row.IsRoot)
                {
                    return(true);
                }

                CatalogDataset.CatalogItemsRow parentRow = this.CatalogItems.FindByItemID(row.ParentItemID);
                if (parentRow != null)
                {
                    return(CheckRowAncestorship(parentRow));
                }
            }

            return(false);
        }
Пример #4
0
        public CatalogItem(Catalog cat, CatalogDataset.CatalogItemsRow row)
        {
            currentRow = row;
            _cat = cat;

#if HAVE_COUNTERS_DISPLAY
            _totalChildrenCount = -1;
#endif
        }
Пример #5
0
        public CatalogItem(Catalog cat)
        {
            currentRow = cat.CatalogItems.NewCatalogItemsRow();
            currentRow.DateCreated = DateTime.Now;
            cat.CatalogItems.AddCatalogItemsRow(currentRow);
            _cat = cat;

#if HAVE_COUNTERS_DISPLAY
            _totalChildrenCount = -1;
#endif        
        }