Exemplo n.º 1
0
        public void SetSourcePort(PortModel port)
        {
            if (SourcePort == port)
            {
                return;
            }

            SourcePort.RemoveLink(this);
            SourcePort = port;
            SourcePort.AddLink(this);
            SourcePortChanged?.Invoke();
        }
Exemplo n.º 2
0
        public void SetSourcePort(PortModel port)
        {
            if (SourcePort == port)
            {
                return;
            }

            var old = SourcePort;

            SourcePort?.RemoveLink(this);
            SourcePort = port;
            SourcePort.AddLink(this);
            SourcePortChanged?.Invoke(this, old, SourcePort);
        }