コード例 #1
0
ファイル: AddLineBold.cs プロジェクト: redliontom/SWP2
        public void Execute()
        {
            line = new ModelLine();
            boldLine = new ModelLineBold(posX1, posY1, posX2, posY2);

            line.myLine = boldLine.myLine;
            line.Typ = ModelLine.type.Bold;
            line.myLine.MouseDown += myLine_MouseDown;
            line.myLine.MouseMove += myLine_MouseMove;
            line.myLine.MouseUp += myLine_MouseUp;

            scene.Children.Add(line.myLine);
        }
コード例 #2
0
ファイル: AddLineThin.cs プロジェクト: redliontom/SWP2
        public void Execute()
        {
            line = new ModelLine();
            thinLine = new ModelLineThin(posX1, posY1, posX2, posY2);

            line.myLine = thinLine.myLine;
            line.Typ = ModelLine.type.Thin;
            //shape.pos = new Point(posX, posY);
            //line.myLine.MouseDown += myPath_MouseDown;
            //line.myLine.MouseMove += myPath_MouseMove;
            //line.myLine.MouseUp += myPath_MouseUp;

            scene.Children.Add(line.myLine);
        }