Ejemplo n.º 1
0
        public override void Do()
        {
            SelectionModel sm = (Designer.CurrentSheet as Sheet <Gdk.Event, Cairo.Context, SolidV.MVC.Model>).Model.GetSubModel <SelectionModel>();

            for (int i = 0; i < sm.Selected.Count - 1; i++)
            {
                BinaryRelationShape binaryRelation = (BinaryRelationShape)NewShape.DeepCopy();
                binaryRelation.From = sm.Selected[i];
                binaryRelation.To   = sm.Selected[i + 1];
                Designer.AddShapes(binaryRelation);
            }
        }