Example #1
0
 /// <summary>
 /// Add a Custom Binda Strategy for specific controls
 /// </summary>
 /// <param name="strategy"></param>
 /// <param name="controls"></param>
 public void AddRegistration(BindaStrategy strategy, params Control[] controls)
 {
     Array.ForEach(controls, x => _controlStrategies[x] = strategy);
 }
Example #2
0
 /// <summary>
 /// Add a Custom Binda Strategy for a control type.
 /// </summary>
 /// <param name="controlType"></param>
 /// <param name="strategy"></param>
 public void AddRegistration(Type controlType, BindaStrategy strategy)
 {
     _typeStrategies[controlType] = strategy;
 }