public override void SetComponent(FlowChartComponent component) { ID = component.ID; Text = component.Text; TopLeftCorner = component.Points[0]; BottomRightCorner = component.Points[1]; }
public override FlowChartComponent GetComponent() { FlowChartComponent component = new FlowChartComponent(); component.ID = this.ID; component.Text = Text; component.Type = this.GetType().FullName; component.Points.Add(TopLeftCorner); component.Points.Add(BottomRightCorner); return component; }
public ObjectCreateVisitor(FlowChartModel model, FlowChartComponent component) { this.model = model; this.component = component; }
public override FlowChartComponent GetComponent() { FlowChartComponent component = new FlowChartComponent(); component.ID = this.ID; component.Text = Text; component.Type = this.GetType().FullName; component.Points.Add(StartPoint); component.Points.Add(EndPoint); FlowChartReference fcRef1 = new FlowChartReference { ID = ConnectionStart != null ? ConnectionStart.ID : string.Empty, Name = "Start" }; FlowChartReference fcRef2 = new FlowChartReference { ID = ConnectionEnd != null ? ConnectionEnd.ID : string.Empty, Name = "End" }; component.ConnectionIds.Add(fcRef1); component.ConnectionIds.Add(fcRef2); if (ConnectionStart != null) { fcRef1.Key1 = ConnectionStartPointIndex; } if (ConnectionEnd != null) { fcRef2.Key1 = ConnectionEndPointIndex; } return component; }
public override void SetComponent(FlowChartComponent component) { ID = component.ID; Text = component.Text; StartPoint = component.Points[0]; EndPoint = component.Points[1]; }
public override void SetComponent(FlowChartComponent component) { ControlPoint1 = component.Points[2]; ControlPoint2 = component.Points[3]; base.SetComponent(component); }
public abstract void SetComponent(FlowChartComponent component);