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); }
public Concept(Semantics.Concepts.Concept concept) : this(concept.ID, LocalizedString.From(concept.Name), LocalizedString.From(concept.Hint)) { BoundObject = concept; }