Exemplo n.º 1
0
        private void DoNextCommand(MouseEventArgs e, bool move)
        {
            switch (nextAction.ToString())
            {
            case "DRAW":
                DrawLine(e);
                break;

            case "ERASE":
                if (e.LeftButton == MouseButtonState.Pressed)
                {
                    EraseLine();
                }
                break;

            case "FILL":
                if (!move)
                {
                    FillCanvas();
                }
                break;

            default:
                break;
            }
        }