示例#1
0
        private void UpdateControl()
        {
            string svgLocator = null;

            bool entered = this.pictureBox.ClientRectangle.Contains(this.pictureBox.PointToClient(Cursor.Position));

            if (!this.Enabled)
            {
                svgLocator = this.disabledSvgLocator;
            }
            else if (entered && !string.IsNullOrEmpty(this.mouseOverSvgLocator))
            {
                svgLocator = this.mouseOverSvgLocator;
            }

            if (string.IsNullOrEmpty(svgLocator))
            {
                svgLocator = this.enabledSvgLocator;
            }

            UIUtils.DrawWithSvg(this.pictureBox, svgLocator);
        }
示例#2
0
 private void UpdateControl()
 {
     UIUtils.DrawWithSvg(this.pictureBox, this.svgLocator);
 }