Exemple #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);
 }
Exemple #2
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);
 }
Exemple #3
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;
 }
Exemple #4
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;
 }