We’re subclassing GoLink, GoSubgraph, and GoIconicNode in our application. Cut/copy/paste seems to work fine. We are doing cut/copy/paste via making the involved drawing entities [Serializable]. We also have a business object in the UserObject field.
I have two questions.
- We want to update one of our fields in the new Object’s UserObject upon paste (and drag/drop). How can we do this easily? I tried overriding CopyObject and that seemed to affect both the copied and pasted object.
- We take two GoIconicNodes that are programmatically created within a GoSubGraph, and then link them. Then, we cut them and paste them outside of the GoSubGraph. Problem is, the GoLink.ToNode and GoLink.FromNode properties are null. When are these supposed to be set?