Пример #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);
 }
Пример #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);
 }
Пример #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;
 }
Пример #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;
 }