コード例 #1
0
ファイル: ClassObject.cs プロジェクト: renebrandel/ComposIT
 /// <summary>
 /// Removes an attribute from the class object.
 /// </summary>
 /// <param name="iObject"> the attribute to be removed </param>
 public void RemoveAttribute(InstanceObject iObject)
 {
     Attributes.Remove(iObject);
     ModelManager.GetInstance().StartTranslation();
 }
コード例 #2
0
ファイル: ClassObject.cs プロジェクト: renebrandel/ComposIT
 /// <summary>
 /// Adds an attribute to the class object.
 /// </summary>
 /// <param name="iObject"> the attribute to be added </param>
 public void AddAttribute(InstanceObject iObject)
 {
     Attributes.Add(iObject);
     iObject.Parent = this;
     ModelManager.GetInstance().StartTranslation();
 }