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