예제 #1
0
        public void Add(Account account, Counterparty owner)
        {
            var item = new CatalogObjectNode
            {
                Id            = GetReferenceId(account, owner),
                CatalogueType = this.Name
            };

            item.Reference = CreateReferenceTo(account, owner);
            item.Properties.AddRange(GetProperties(account, owner));
            exportData.Objects.Add(item);
        }
예제 #2
0
        public void Add(T obj)
        {
            var item = new CatalogObjectNode
            {
                Id            = GetReferenceId(obj),
                CatalogueType = this.Name
            };

            item.Reference = CreateReferenceTo(obj);
            item.Properties.AddRange(GetProperties(obj));
            exportData.Objects.Add(item);
        }