Esempio n. 1
0
 public void removeLink(LayoutChainLink link)
 {
     if (links.ContainsValue(link))
     {
         deactivateLink(link.Name);
         foreach (var namedElement in link.ElementNames)
         {
             namedLinkedElements.Remove(namedElement);
         }
         links.Remove(link.Name);
     }
 }
Esempio n. 2
0
 private void doActivateLink(LayoutChainLink link, LinkedListNode <LayoutChainLink> previousNode)
 {
     if (previousNode != null)
     {
         activeLinks.AddAfter(previousNode, link);
         previousNode.Value._setChildContainer(link.Container);
     }
     else
     {
         activeLinks.AddLast(link);
     }
 }
Esempio n. 3
0
 public void addLink(LayoutChainLink link, bool addToActiveChainEnd = false)
 {
     link.CompactMode = compactMode;
     links.Add(link.Name, link);
     foreach (var namedElement in link.ElementNames)
     {
         namedLinkedElements.Add(namedElement, link);
     }
     if (addToActiveChainEnd)
     {
         doActivateLink(link, activeLinks.Last);
     }
 }
Esempio n. 4
0
 public void removeLinkFromChain(LayoutChainLink link)
 {
     screenLayoutManager.LayoutChain.removeLink(link);
 }
Esempio n. 5
0
 public void addLinkToChain(LayoutChainLink link)
 {
     screenLayoutManager.LayoutChain.addLink(link, false);
 }