Пример #1
0
 public void Execute()
 {
     shape = new ModelShape();
     ellipse = new ModelEllipseShape(posX, posY, h, w);
     shape.myPath = ellipse.myPath;
     shape.pos = new Point(posX, posY);
     shape.Typ = ModelShape.type.Ellipse;
     shape.myPath.MouseDown += myPath_MouseDown;
     shape.myPath.MouseMove += myPath_MouseMove;
     shape.myPath.MouseUp += myPath_MouseUp;
     scene.Children.Add(shape.myPath);
 }
Пример #2
0
 public void Execute()
 {
     shape = new ModelShape();
     triangle = new ModelTriangleShape(posX, posY, posW);
     shape.myPath = triangle.myPath;
     shape.pos = new Point(posX, posY);
     shape.Typ = ModelShape.type.Triangle;
     shape.myPath.MouseDown += myPath_MouseDown;
     shape.myPath.MouseMove += myPath_MouseMove;
     shape.myPath.MouseUp += myPath_MouseUp;
     scene.Children.Add(shape.myPath);
 }
Пример #3
0
        public void Execute()
        {
            /*ModelThumbRect thumbrect = new ModelThumbRect(posX, posY, w, w);
            thumb = new ModelThumb();
            thumbrect.myPath.DragDelta += cornerThumb_DragDelta;
            scene.Children.Add(thumbrect.myPath);
            thumb.myPath = thumbrect.myPath;*/

            shape = new ModelShape();
            square = new ModelSquareShape(posX, posY, w);

            shape.myPath = square.myPath;
            shape.pos = new Point(posX, posY);
            shape.Typ = ModelShape.type.Rectangle;
            shape.myPath.MouseDown += myPath_MouseDown;
            shape.myPath.MouseMove += myPath_MouseMove;
            shape.myPath.MouseUp += myPath_MouseUp;

            scene.Children.Add(shape.myPath);
        }
Пример #4
0
 public void remove(ModelShape component)
 {
     child.Remove(component);
 }
Пример #5
0
 public void add(ModelShape component)
 {
     child.Add(component);
 }