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); }
private void UpdateControl() { UIUtils.DrawWithSvg(this.pictureBox, this.svgLocator); }