Beispiel #1
0
        private void DrawLines()
        {
            Graphics gfx = ResultBox.CreateGraphics();

            for (int i = 1; i <= ColumnsInput.Value; i++)
            {
                gfx.DrawLine(Pens.Black, (float)(ResultBox.Left + (i * ResultBox.Width / ColumnsInput.Value)), ResultBox.Bottom, (float)(ResultBox.Left + (i * ResultBox.Width / ColumnsInput.Value)), ResultBox.Top);
            }
        }