public void Initialize(IVisualNodeComponent component, ConnectorType connectionType) { _parentComponent = component; _connectorType = connectionType; if (component is INodeField field) { field.AnyValueChanged += (o, e) => { if (e as string is INodeField.InputKey && connectionType is ConnectorType.Input) { ExistsChanged?.Invoke(this, new EventArgs()); } if (e as string is INodeField.OutputKey && connectionType is ConnectorType.Output) { ExistsChanged?.Invoke(this, new EventArgs()); } }; } }
private void FlowPropertyChanged(object sender, PropertyChangedEventArgs e) { ExistsChanged?.Invoke(this, new EventArgs()); }