Ejemplo n.º 1
0
 public static void UnregisterEffectControlProvider(IEffectControlProvider self, IElementController element)
 {
     if (element?.EffectControlProvider == self)
     {
         element.EffectControlProvider = null;
     }
 }
Ejemplo n.º 2
0
		public static void RegisterEffectControlProvider(IEffectControlProvider self, IElementController oldElement,
			IElementController newElement)
		{
			IElementController controller = oldElement;
			if (controller != null && controller.EffectControlProvider == self)
				controller.EffectControlProvider = null;

			controller = newElement;
			if (controller != null)
				controller.EffectControlProvider = self;
		}
Ejemplo n.º 3
0
        public static void RegisterEffectControlProvider(IEffectControlProvider self, IElementController oldElement, IElementController newElement)
        {
            IElementController controller = oldElement;

            if (controller != null && controller.EffectControlProvider == self)
            {
                controller.EffectControlProvider = null;
            }

            controller = newElement;
            if (controller != null)
            {
                controller.EffectControlProvider = self;
            }
        }