public TargetItem StoreGeneralItem(TargetData dataItem)
        {
            ArticleTarget newTarget = new ArticleTarget(dataItem.Head, dataItem.Part, dataItem.Code, dataItem.Seed);

            SourcePack newSource = GetTemplateSourceForArticle(dataItem.Code, dataItem.Tags);

            model.Add(newTarget, newSource);

            return(newTarget);
        }
        public TargetItem StoreGeneralItem(TargetHead codeHead, TargetPart codePart, ConfigCode codeBody, TargetSeed seedBody, ISourceValues tagsBody)
        {
            ArticleTarget newTarget = new ArticleTarget(codeHead, codePart, codeBody, seedBody);

            SourcePack newSource = GetTemplateSourceForArticle(codeBody, tagsBody);

            model.Add(newTarget, newSource);

            return(newTarget);
        }
示例#3
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }

            ArticleTarget other = obj as ArticleTarget;

            return(this.IsEqualToSame(other));
        }
示例#4
0
        public virtual object Clone()
        {
            ArticleTarget clone = (ArticleTarget)this.MemberwiseClone();

            return(clone);
        }