예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphicalSrcPad"/> class.
 /// </summary>
 /// <param name="element">The underlying SrcPad.</param>
 /// <param name="parent">The element his pad belongs to.</param>
 /// <param name="padIndex">The Index of this Pad used to calculate position relative to the element.</param>
 public GraphicalSrcPad(ISrcPad element, GraphicalElement parent, int padIndex = 0)
     : base(element)
 {
     this.padIndex = padIndex;
     this.Parent   = parent ?? throw new ArgumentNullException(nameof(parent));
     this.Parent.PropertyChanged += this.Parent_PropertyChanged;
 }
예제 #2
0
        /// <inheritdoc/>
        public bool Equals(GraphicalElement other)
        {
            if (other == null)
            {
                return(false);
            }

            return(this.Element.Equals(other.Element));
        }