Exemple #1
0
        public void InputLine(Point cur, bool isVertHor)
        {
            IsInputCutter = false;
            if (!IsInputLine)
            {
                InputingLine.A = cur;
                InputingLine.B = cur;
                IsInputLine    = true;
            }
            else
            {
                if (isVertHor)
                {
                    InputingLine.SetHorVertLine(cur);
                }
                else
                {
                    InputingLine.B = cur;
                }

                InputingLine.Draw(g);
                Lines.Add(new Line()
                {
                    Pen = InputingLine.Pen, A = InputingLine.A, B = InputingLine.B
                });
                IsInputLine = false;
            }
        }
Exemple #2
0
        public void DrawMovingLine(Point cur, bool isVertHor)
        {
            PbCanvas.Refresh();

            if (isVertHor)
            {
                InputingLine.SetHorVertLine(cur);
            }
            else
            {
                InputingLine.B = cur;
            }

            InputingLine.Draw(gMove);
        }
Exemple #3
0
        public void InputLine(Point cur, bool isVertHor)
        {
            if (!IsInputLine)
            {
                InputingLine = new Line(PenLine, cur, cur);
                IsInputLine  = true;
            }
            else
            {
                if (isVertHor)
                {
                    InputingLine.SetHorVertLine(cur);
                }
                else
                {
                    InputingLine.B = cur;
                }

                InputingLine.Draw(g);
                Lines.Add(InputingLine);
                IsInputLine = false;
            }
        }