Exemple #1
0
        public Graph(TreeNodeData treeNode)
        {
            IGraph graph = GraphHelper.Convert(treeNode);

            _paths        = graph.Paths;
            _severity     = graph.Severity;
            _maxRelations = graph.MaxRelations;
        }
Exemple #2
0
        public Graph(ReportQueryResult query)
        {
            IGraph graph = GraphHelper.Convert(query);

            _paths        = graph.Paths;
            _severity     = graph.Severity;
            _maxRelations = graph.MaxRelations;
        }
 public TreeNodeData(ViewerTreeNodeType type, int id, string name, long scanId, ReportQuerySeverityType severity, ReportQueryResult queryResult)
 {
     Type        = type;
     Id          = id;
     Name        = name;
     ScanId      = scanId;
     Severity    = severity;
     QueryResult = queryResult;
 }
Exemple #4
0
 public Graph(ReportQueryItemResult queryItem)
 {
     _paths = new List <GraphPath>();
     _paths.Add((GraphPath)GraphHelper.Convert(queryItem, 0));
     _severity = queryItem.Query.Severity;
 }