Example #1
0
 /// <summary>
 /// Adds a new det
 /// </summary>
 /// <param name="attribute"></param>
 public void AddDet(UMLAttribute attribute)
 {
     if (!Dets.Contains(attribute))
     {
         Dets.Add(attribute);
         NotifyPropertyChanged("AddDet");
     }
 }
Example #2
0
 /// <summary>
 /// Removes a det
 /// </summary>
 /// <param name="attribute"></param>
 public void RemoveDet(UMLAttribute attribute)
 {
     foreach (UMLAttribute det in Dets)
     {
         if (det.Guid == attribute.Guid)
         {
             Dets.Remove(det);
             NotifyPropertyChanged("RemoveDet");
             break;
         }
     }
 }