private void OnNodeAdded(Graph.Nodes.NodeModel obj) { if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) && GraphPythonDependencies.IsIronPythonNode(obj)) { LogIronPythonNotification(); } }
private void OnNodeRemoved(Graph.Nodes.NodeModel obj) { if (!(obj is PythonNodeBase pythonNode)) { return; } UnSubscribePythonNodeEvents(pythonNode); }
private void OnNodeAdded(Graph.Nodes.NodeModel obj) { if (!NotificationTracker.ContainsKey(CurrentWorkspace.Guid) && GraphPythonDependencies.IsIronPythonNode(obj)) { LogIronPythonNotification(); } if (obj is PythonNodeBase) { SubscribeToPythonNodeEvents(obj as PythonNodeBase); } }
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); } }
private void CurrentDynamoModel_RequestCancelActiveStateForNode(Graph.Nodes.NodeModel node) { requestCancelActiveStateForNode = true; }