private void CopyDataFromContactToForm(ContactInfo contact, DataClassInfo classInfo, BizFormItem formItem) { var mapInfo = new FormInfo(classInfo.ClassContactMapping); var fields = mapInfo.GetFields(true, true); foreach (FormFieldInfo ffi in fields) { formItem.SetValue(ffi.MappedToField, contact.GetStringValue(ffi.Name, string.Empty)); } }