Exemplo n.º 1
0
 /// <summary>
 /// Adds a binder agent.
 /// </summary>
 /// <typeparam name="T">Type of the control.</typeparam>
 /// <param name="binderAgent">The binder agent.</param>
 /// <returns>
 /// The added binder agent.
 /// </returns>
 public static BinderAgent AddBinderAgent <T>(BinderAgent binderAgent)
 {
     return(AddBinderAgent(typeof(T), binderAgent));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a binder agent.
 /// </summary>
 /// <param name="controlType">Type of the control.</param>
 /// <param name="binderAgent">The binder agent.</param>
 /// <returns>
 /// The added binder agent.
 /// </returns>
 public static BinderAgent AddBinderAgent(Type controlType, BinderAgent binderAgent)
 {
     return(BinderAgent[controlType] = binderAgent);
 }