private void RegularLine(int length)
        {
            BoxLine boxLine = new BoxLine();

            if (boxLine is IDrawLine)
            {
                IDrawLine drawLine = boxLine;
                drawLine.SetZero((int)DrawCanvas.Width, (int)DrawCanvas.Height);
            }
        }
Exemple #2
0
        private void RegularLine(int length)
        {
            BoxLine boxLine = new BoxLine();

            if (boxLine is IDrawLine)
            {
                IDrawLine drawLine = boxLine;
                //boxLine.SetLocation((int)mouseLocation.X, (int)mouseLocation.Y);
                drawLine.SetZero((int)DrawCanvas.Width, (int)DrawCanvas.Height);
                //drawLine.DrawLine(DrawCanvas, 0, 0);
            }
        }