Esempio n. 1
0
        private void ProcessUpdateMessage(UpdatePropertyMessage message)
        {
            switch (message.PropertyName)
            {
            case "ClientRectangle":
                ClientRectangle = (Common.Rectangle)message.Value;
                break;

            default: break;
            }
        }
Esempio n. 2
0
        private void ProcessUpdatePropertyMessage(UpdatePropertyMessage message)
        {
            if (message.PropertyName == "TopLeftPresentationImageIndex")
            {
                int newIndex = (int)message.Value;
                if (newIndex != _imageBox.TopLeftPresentationImageIndex)
                {
                    _imageBox.TopLeftPresentationImageIndex = newIndex;

                    // Assume the image index is only updated by the client
                    // when the scroll bar is used. If this is the case, the
                    // image box should be selected.
                    if (!_imageBox.Selected)
                    {
                        _imageBox.SelectDefaultTile();
                    }

                    Draw();
                }
            }
        }