Example #1
0
        public void SetSharedBlock(CharacterBlock block, int position)
        {
            switch (direction)
            {
            case Direction.Horizontal:
                block.SetHorizontalWord(this);
                break;

            case Direction.Vertical:
                block.SetVerticalWord(this);
                break;

            default:
                throw new Exception("Unhandled case for enum WordDirection.");
            }
            blocks.SetValue(block, position);
        }