예제 #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
파일: Binder.cs 프로젝트: minton/binda
 /// <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
파일: Binder.cs 프로젝트: minton/binda
 /// <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;
 }