public void UnregisterStarLayoutProvider(IProvideStarLayoutInfoBase starLayoutInfoProvider) { if (starLayoutInfoProvider == null) { throw new ArgumentNullException("starLayoutInfoProvider"); } if (_registeredStarLayoutProviders.Contains(starLayoutInfoProvider)) { _registeredStarLayoutProviders.Remove(starLayoutInfoProvider); InvalidateMeasure(); } }
public void RegisterStarLayoutProvider(IProvideStarLayoutInfoBase starLayoutInfoProvider) { if (starLayoutInfoProvider == null) { throw new ArgumentNullException("starLayoutInfoProvider"); } IProvideStarLayoutInfo provider = starLayoutInfoProvider as IProvideStarLayoutInfo; if (provider == null) { throw new ArgumentException(SR.Get(SRID.RibbonGroupsPanel_InvalidRegistrationParameter), "starLayoutInfoProvider"); } if (!_registeredStarLayoutProviders.Contains(provider)) { _registeredStarLayoutProviders.Add(provider); InvalidateMeasure(); } }
public void UnregisterStarLayoutProvider(IProvideStarLayoutInfoBase starLayoutInfoProvider) { if (starLayoutInfoProvider == null) { throw new ArgumentNullException("starLayoutInfoProvider"); } IProvideStarLayoutInfo provider = starLayoutInfoProvider as IProvideStarLayoutInfo; if (provider == null) { throw new ArgumentException(SR.Get(SRID.RibbonGroupsPanel_InvalidRegistrationParameter), "starLayoutInfoProvider"); } if (_registeredStarLayoutProviders.Contains(provider)) { _registeredStarLayoutProviders.Remove(provider); InvalidateMeasure(); } }