예제 #1
0
 public void SetComponent <A, B>(A component, ControlAttribute attribute) where A : IOeipComponent <B>
 {
     component.ControlAttribute = attribute;
     component.DisplayName      = attribute.DisplayName;
     component.SetValueChangeAction(OnValueChange);
 }
예제 #2
0
 /// <summary>
 /// 根据字段的ControlAttribute生成对应UI
 /// </summary>
 /// <param name="attribute"></param>
 /// <returns></returns>
 public abstract IOeipComponent CreateComponent(ControlAttribute attribute);