예제 #1
0
 public override void SetComponent(FlowChartComponent component)
 {
     ID = component.ID;
     Text = component.Text;
     TopLeftCorner = component.Points[0];
     BottomRightCorner = component.Points[1];
 }
예제 #2
0
 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;
 }
예제 #3
0
 public ObjectCreateVisitor(FlowChartModel model, FlowChartComponent component)
 {
     this.model = model;
     this.component = component;
 }
예제 #4
0
        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;
        }
예제 #5
0
 public override void SetComponent(FlowChartComponent component)
 {
     ID = component.ID;
     Text = component.Text;
     StartPoint = component.Points[0];
     EndPoint = component.Points[1];
 }
예제 #6
0
 public override void SetComponent(FlowChartComponent component)
 {            
     ControlPoint1 = component.Points[2];
     ControlPoint2 = component.Points[3];
     base.SetComponent(component);
 }
예제 #7
0
 public abstract void SetComponent(FlowChartComponent component);