Пример #1
0
        public object ApplyCreate(Semantics.ISemanticNetwork semanticNetwork)
        {
            semanticNetwork.Concepts.Add(BoundObject = new Semantics.Concepts.Concept(ID, Name.Create(), Hint.Create()));

            foreach (var attribute in Attributes)
            {
                if (attribute.IsOn && attribute.Value != null)
                {
                    BoundObject.WithAttribute(attribute.Value);
                }
            }

            return(BoundObject);
        }
Пример #2
0
 public Concept(Semantics.Concepts.Concept concept)
     : this(concept.ID, LocalizedString.From(concept.Name), LocalizedString.From(concept.Hint))
 {
     BoundObject = concept;
 }