예제 #1
0
 public SecurityPanelNode(string name, string code, int overlayID)
 {
     Name = name;
     Code = code;
     if (SecurityPanel.CurrentPanel == null)
     {
         SecurityPanel.CurrentPanel?.Nodes?.Add(this);
     }
     OverlayResourceId = overlayID;
     Results           = new DetailList();
 }
예제 #2
0
 public SecurityPanelNodeLink(SecurityPanelNode start, SecurityPanelNode end, bool isLinked = false)
 {
     Name      = start.Name + " to " + end.Name;
     Code      = start.Code + "to" + end.Code;
     StartNode = start;
     EndNode   = end;
     IsLinked  = isLinked;
     StartNode.LinksOut.Add(EndNode, this);
     EndNode.LinksIn.Add(StartNode, this);
     SecurityPanel.CurrentPanel.Links.Add(this);
     SecurityPanel.CurrentPanel.Linkages.Add(StartNode, EndNode, this);
     MeasureResults = new DetailList();
 }