public void BindTo(OverlaySelector xiOverlaySelector) { if (mOverlaySelector != null) { throw new Exception("Can't bind to more than one OverlaySelector"); } if (mProperty.PropertyType != typeof(System.Drawing.Color)) { throw new Exception("Only Color properties can use OverlaySelector"); } mOverlaySelector = xiOverlaySelector; mOverlaySelector.Changed += new EventHandler(this.OverlaySelectorChangedHandler); ValueChangeHandler(null, null); }
public void BindTo(OverlaySelector xiOverlaySelector) { if (mOverlaySelector != null) throw new Exception("Can't bind to more than one OverlaySelector"); if (mProperty.PropertyType != typeof(System.Drawing.Color)) throw new Exception("Only Color properties can use OverlaySelector"); mOverlaySelector = xiOverlaySelector; mOverlaySelector.Changed += new EventHandler(this.OverlaySelectorChangedHandler); ValueChangeHandler(null, null); }