private void UpdateTo() { if (d_output != null) { d_output.Moved -= OnToMoved; d_output.Unlink(this); } Wrappers.Node oldTo = d_output; d_output = Wrappers.Wrapper.Wrap(WrappedObject.Output as Cdn.Node) as Wrappers.Node; RecalculateLinkOffsets(d_input, oldTo); if (d_output != null) { d_output.Moved += OnToMoved; d_output.Link(this); RecalculateLinkOffsets(d_input, d_output); d_output.LinkFocus = LinkFocus; if (d_input != null) { Allocation.Assign(0, 0, 1, 1); } } }
private void UpdateFrom() { if (d_input != null) { d_input.Moved -= OnFromMoved; } Wrappers.Node oldFrom = d_input; d_input = Wrappers.Wrapper.Wrap(WrappedObject.Input as Cdn.Node) as Wrappers.Node; RecalculateLinkOffsets(oldFrom, d_output); if (d_input != null) { d_input.Moved += OnFromMoved; RecalculateLinkOffsets(d_input, d_output); d_input.LinkFocus = LinkFocus; if (d_output != null) { Allocation.Assign(0, 0, 1, 1); } } }