Esempio n. 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);
 }
Esempio n. 2
0
 /// <summary>
 /// 根据字段的ControlAttribute生成对应UI
 /// </summary>
 /// <param name="attribute"></param>
 /// <returns></returns>
 public abstract IOeipComponent CreateComponent(ControlAttribute attribute);