Ejemplo n.º 1
0
        public void DismissGuideLine()
        {
            GuidingLine guidingLine = GuidingLine.GetInstance();

            if (this.drawingObjects.Contains(guidingLine))
            {
                Debug.WriteLine("Guiding Line removed");
                this.RemoveDrawingObject(guidingLine);
            }
        }
Ejemplo n.º 2
0
        private void ShowGuideLine(Point startpoint, Point endpoint, Graphics g)
        {
            GuidingLine guideLine = GuidingLine.GetInstance();

            guideLine.Startpoint = startpoint;
            guideLine.Endpoint   = endpoint;
            guideLine.SetGraphics(g);

            if (!this.drawingObjects.Contains(guideLine))
            {
                Debug.WriteLine("Guide Line added");
                //this.AddDrawingObject(guideLine);
                this.drawingObjects.Add(guideLine);
            }

            guideLine.Draw();
        }