Beispiel #1
0
 internal void RemoveLinkedItem(ProjectItemLinkDescription description, ProjectItem item2)
 {
     var link = _links.FirstOrDefault(l => l.Description == description && l.ProjectItem == item2);
     if (link != null)
         _links.Remove(link);
 }
Beispiel #2
0
 public void RemoveLink(ProjectItem item1, ProjectItemLinkDescription link, ProjectItem item2)
 {
     item1.RemoveLinkedItem(link, item2);
     item2.RemoveLinkedItem(link, item1);
 }
Beispiel #3
0
 internal void AddLinkedItem(ProjectItemLinkDescription linkDescription, ProjectItem linkTo)
 {
     _links.Add(new ProjectItemLink(linkDescription, linkTo));
 }
Beispiel #4
0
 public void AddLink(ProjectItem item1, ProjectItemLinkDescription linkDescription, ProjectItem item2)
 {
     item1.AddLinkedItem(linkDescription, item2);
     item2.AddLinkedItem(linkDescription, item1);
 }