/// <summary> /// Creates a new instance of an impulse for a sub-reference graph. /// </summary> /// <param name="impulse">The original non-sub-reference graph impulse node.</param> public Impulse(Impulse impulse) : base(null, _theBackgroundBrush, _theDraggedBackgroundBrush, impulse.BaseLabel, false, impulse.Description) { _genericChildren= new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue); impulse.CloneProperties(this); OnPropertyValueChanged(false); CopyEventHandlers(impulse); #if DEBUG _debugIsSubreferencedGraphNode= true; #endif }
/// <summary> /// Creates a new instance of an impulse for a sub-reference graph. /// </summary> /// <param name="impulse">The original non-sub-reference graph impulse node.</param> public Impulse(Impulse impulse) : base(null, _theBackgroundBrush, _theDraggedBackgroundBrush, impulse.BaseLabel, false, impulse.Description) { _genericChildren = new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue); impulse.CloneProperties(this); OnPropertyValueChanged(false); CopyEventHandlers(impulse); #if DEBUG _debugIsSubreferencedGraphNode = true; #endif }
/// <summary> /// Creates a new instance of an impulse for a sub-reference graph. /// </summary> /// <param name="impulse">The original non-sub-reference graph impulse node.</param> public Impulse(Impulse impulse) : base(impulse.Label, impulse.Description) { _acceptsEvents = false; _genericChildren = new ConnectorMultiple(_children, string.Empty, "GenericChildren", 1, int.MaxValue); impulse.CloneProperties(this); OnPropertyValueChanged(false); CopyEventHandlers(impulse); #if DEBUG _debugIsSubreferencedGraphNode = true; #endif }