private void ControlJogPathCreator_Load(object sender, EventArgs e)
        {
            //            Logger.Trace("++++++ ControlJogPathCreator START ++++++");
            this.Icon           = Properties.Resources.Icon;
            penjogPath.StartCap = LineCap.Round;
            penjogPath.EndCap   = LineCap.Triangle;
            drawingSize.setX(-10, 100);
            drawingSize.setY(-10, 100);
            jogPath.StartFigure();
            jogPath.AddLine(10, 10, 10, 30);
            jogPath.AddLine(10, 30, 30, 30);
            jogPath.AddLine(30, 30, 30, 10);
            jogPath.AddLine(30, 10, 10, 10);
            lastSet = new PointF(10, 10);

            VisuGCode.createRuler(ruler, drawingSize);
            createGrid(grid, drawingSize, (float)nUDRaster.Value);
        }
        private void createGridView()
        {
            drawingProperties tmp = new drawingProperties();
            PointF            ul  = getGraphicCoordinateFromPictureBox(new Point(0, 0));
            PointF            lr  = getGraphicCoordinateFromPictureBox(new Point(pictureBox1.Width, pictureBox1.Height));

            tmp.setX((float)Math.Round(ul.X), (float)Math.Round(lr.X));
            tmp.setY((float)Math.Round(ul.Y), (float)Math.Round(lr.Y));
            VisuGCode.createRuler(ruler, tmp);
            createGrid(grid, tmp, (float)nUDRaster.Value);
        }