Example #1
0
        private void pbCanvas_MouseMove(object sender, MouseEventArgs e)
        {
            Point mousePos = pbCanvas.PointToClient(MousePosition);

            if (ManagerDraw.IsInputCutter)
            {
                ManagerDraw.DrawMovingCutter(mousePos, ModifierKeys == Keys.Shift);
            }
            else if (ManagerDraw.IsInputPolygon)
            {
                ManagerDraw.DrawMovingPolygon(mousePos, ModifierKeys == Keys.Shift);
            }
        }