/// <summary> /// Adds a proxy agent. /// </summary> /// <typeparam name="T">Type of the control.</typeparam> /// <param name="proxyAgent">The proxy agent.</param> /// <returns> /// The added proxy agent. /// </returns> public static ProxyAgent AddProxyAgent <T>(ProxyAgent proxyAgent) { return(AddProxyAgent(typeof(T), proxyAgent)); }
/// <summary> /// Adds a proxy agent. /// </summary> /// <param name="controlType">Type of the control.</param> /// <param name="proxyAgent">The proxy agent.</param> /// <returns> /// The added proxy agent. /// </returns> public static ProxyAgent AddProxyAgent(Type controlType, ProxyAgent proxyAgent) { return(ProxyAgent[controlType] = proxyAgent); }