Esempio n. 1
0
        private string GetStateName(StretchDirections direction)
        {
            string name = String.Empty;

            switch (direction)
            {
            case StretchDirections.Bottom:
                name = "CompressionBottom";
                break;

            case StretchDirections.Left:
                name = "CompressionLeft";
                break;

            case StretchDirections.Right:
                name = "CompressionRight";
                break;

            case StretchDirections.Top:
                name = "CompressionTop";
                break;
            }

            return(name);
        }
Esempio n. 2
0
        private string GetAxisName(StretchDirections direction)
        {
            string name = String.Empty;

            switch (direction)
            {
            case StretchDirections.Bottom:
            case StretchDirections.Top:
                name = "Vertical";
                break;

            case StretchDirections.Left:
            case StretchDirections.Right:
                name = "Horizontal";
                break;
            }

            return(name);
        }