- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
if (currentItem.Type.ActiveProperty != null)
{
Type controltype = currentControl.GetType();
PropertyInfo pinfo = controltype.GetProperty(currentItem.Type.ActiveProperty.Name);
bool enabledtrue = (currentItem.Type.ActiveProperty.Name.ToLower() != "readonly");
if ((r1 != 2) || _page.ReadOnly)
enabledtrue = !enabledtrue;
pinfo.SetValue(currentControl, enabledtrue, null);
}