/// <summary> /// Initializes a new instance of the <see cref="Cdp4DiagramConnector"/> class. /// </summary> public Cdp4DiagramConnector(IDiagramConnectorViewModel dataContext, Cdp4DiagramOrgChartBehavior behaviour, DiagramConnector baseConnector = null) { this.DataContext = dataContext; this.behaviour = behaviour; if (baseConnector != null) { this.CopyConnectorsettings(baseConnector); } this.Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="Cdp4DiagramContentItem"/> class. /// </summary> /// <param name="datacontext"> /// The <see cref="IDiagramObjectViewModel"/> data-context /// </param> /// <param name="behaviour">The <see cref="Cdp4DiagramOrgChartBehavior"/></param> public Cdp4DiagramContentItem(IDiagramObjectViewModel datacontext, Cdp4DiagramOrgChartBehavior behaviour) { this.DataContext = datacontext; this.behaviour = behaviour; this.Initialize(); }