public void Build <T>(T obj, Action <Property> onPropChanged, PropertySourceType source, bool exposedOnly) { var props = Property.GetProperties(obj, source, exposedOnly); foreach (var p in props) { p.onPropertyChanged += onPropChanged; } Build(props); }
public static List <Property> GetProperties <T>(T obj, PropertySourceType source, List <Property> listToFill, bool explosedOnly) { if (source == PropertySourceType.Fields) { listToFill.Clear(); return(GetPropertiesFromFields(obj, listToFill, explosedOnly)); } else if (source == PropertySourceType.Properties) { listToFill.Clear(); return(GetPropertiesFromProperties(obj, listToFill, explosedOnly)); } else { listToFill.Clear(); GetPropertiesFromFields(obj, listToFill, explosedOnly); return(GetPropertiesFromProperties(obj, listToFill, explosedOnly)); } }
public RequestType() { this.collateralscoreField = false; this.usesubjectField = true; this.logXMLField = true; this.secureField = false; this.collateralscorefullField = false; this.riskscoreField = false; this.riskscoresubprimeField = false; this.dataSourceField = PropertySourceType.mlsdq; this.subjectDataSourceField = PropertySourceType.mlsdq; this.compsTypeField = CompSearchType.carrier; this.propertySetField = false; this.pdfReportField = false; this.pdfLinkField = false; this.chartsField = false; this.chartsLinkField = false; this.chartsEmbeddedField = false; this.searchtypeField = PropertySearchType.address; this.valuerisklevelField = 1; this.refiField = false; this.searchoverrideField = false; this.vriskprocesscompsField = false; this.vriskgeocodecompsField = true; this.usertimeadjvalueField = false; this.xmltypeField = XMLTranslationType.acrp; this.mailingaddressField = false; }
public ResponseType() { this.isUserDefinedField = false; this.valuerisklevelField = 1; this.usesubjectField = true; this.dataSourceField = PropertySourceType.mlsdq; this.compsTypeField = CompSearchType.carrier; this.searchtypeField = PropertySearchType.address; this.refiField = false; }
public static List <Property> GetProperties <T>(T obj, PropertySourceType source, bool explosedOnly) { return(GetProperties(obj, source, new List <Property>(), explosedOnly)); }