コード例 #1
0
 public void UnregisterStarLayoutProvider(IProvideStarLayoutInfoBase starLayoutInfoProvider)
 {
     if (starLayoutInfoProvider == null)
     {
         throw new ArgumentNullException("starLayoutInfoProvider");
     }
     if (_registeredStarLayoutProviders.Contains(starLayoutInfoProvider))
     {
         _registeredStarLayoutProviders.Remove(starLayoutInfoProvider);
         InvalidateMeasure();
     }
 }
コード例 #2
0
 public void UnregisterStarLayoutProvider(IProvideStarLayoutInfoBase starLayoutInfoProvider)
 {
     if (starLayoutInfoProvider == null)
     {
         throw new ArgumentNullException("starLayoutInfoProvider");
     }
     if (_registeredStarLayoutProviders.Contains(starLayoutInfoProvider))
     {
         _registeredStarLayoutProviders.Remove(starLayoutInfoProvider);
         InvalidateMeasure();
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        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();
            }
        }