private void Connect(FlowStepElement elementSrc, FlowStepElement elementDest, ConnectionElement connection) { elementSrc.ConnectionsOut.Add(connection); elementDest.ConnectionsIn.Add(connection); GraphElements.Add(connection); }
public FlowStepElement AddElementToBottomOf(FlowStepElement elementSrc, FlowStepElement elementDest, string connectionColor = "Black") { ConnectToTheBottomOf(elementSrc, AddElement(elementDest), connectionColor); return(elementDest); }
public void ConnectToTheBottomOf(FlowStepElement elementSrc, FlowStepElement elementDest, string connectionColor = "Black") { Connect(elementSrc, elementDest, new ConnectionElement(elementSrc.BottomConnectorOut, elementDest.TopConnectorIn, m_ConnectionFunc, new PathElementElementViewModel { Color = connectionColor })); }
public FlowStepElement AddElement(FlowStepElement element) { GraphElements.Add(element); return(element); }