internal ConnectorModel GetInfo() { var owner = new DesignerItemModel(); owner.Left = DesignerCanvas.GetLeft( ParentDesignerItem ); owner.Top = DesignerCanvas.GetTop( ParentDesignerItem ); owner.Size = new Size( ParentDesignerItem.ActualWidth, ParentDesignerItem.ActualHeight ); ConnectorModel info = new ConnectorModel( owner ); info.Orientation = Orientation; info.Position = Position; return info; }
public ConnectorModel( DesignerItemModel ownerItem ) { Contract.RequiresNotNull( ownerItem, "ownerItem" ); OwnerItem = ownerItem; }