示例#1
0
 private void OnNodeAdded(Graph.Nodes.NodeModel obj)
 {
     if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) &&
         GraphPythonDependencies.IsIronPythonNode(obj))
     {
         LogIronPythonNotification();
     }
 }
示例#2
0
        private void OnNodeRemoved(Graph.Nodes.NodeModel obj)
        {
            if (!(obj is PythonNodeBase pythonNode))
            {
                return;
            }

            UnSubscribePythonNodeEvents(pythonNode);
        }
示例#3
0
        private void OnNodeAdded(Graph.Nodes.NodeModel obj)
        {
            if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) &&
                GraphPythonDependencies.IsIronPythonNode(obj))
            {
                LogIronPythonNotification();
            }

            if (obj is PythonNodeBase)
            {
                SubscribeToPythonNodeEvents(obj as PythonNodeBase);
            }
        }
示例#4
0
        private void OnNodeRemoved(Graph.Nodes.NodeModel node)
        {
            UnsubscribeNodeEvents(node);
            EvaluateGraphRules(node, NODE_REMOVED_PROPERTY);

            var nodeRules = LinterRules.
                            Where(x => x is NodeLinterRule).
                            Cast <NodeLinterRule>().
                            ToList();

            if (nodeRules is null)
            {
                return;
            }

            foreach (var rule in nodeRules)
            {
                var result = new NodeRuleEvaluationResult(rule.Id, Linting.Interfaces.RuleEvaluationStatusEnum.Passed, rule.SeverityCode, node.GUID.ToString());
                rule.OnRuleEvaluated(result);
            }
        }
示例#5
0
 private void CurrentDynamoModel_RequestCancelActiveStateForNode(Graph.Nodes.NodeModel node)
 {
     requestCancelActiveStateForNode = true;
 }