public CreateControlsProperty( DataSession session, String NameClass, String NameProp, String PropertyCaption, Int32 Id, Int32 IdClass, List<object> items, Boolean[] checkSettingHtml ) { this.session = session; this.Id = Id; this.NameClass = NameClass; if (NameProp.IndexOf("-") == -1) this.NameProperty = NameProp; else this.NameProperty = NameProp.Substring(0, NameProp.IndexOf("-")); this.HTMLPropertyCaption = PropertyCaption; this.NamePropertyItems = items; this.IdClass = IdClass; this.NameTable = session[NameClass].Class.DataTable; checkSettingHtml.CopyTo(this.checkSettingHtml, 0); if (!this.checkSettingHtml[9]) this.type = session[NameClass].Class.AllProperties.Need(this.NameProperty).DataTypeName; else { this.type = "string"; if (NameProp.IndexOf("-") == -1) AssocClass = session[NameClass].Class.AllProperties.Need(NameProperty).Association.Refs[0].RefClass.Name; else { AssocClass = session[NameClass].Class.AllProperties.Need(NameProperty).Association.Refs.Need(session[NameProp.Substring(NameProp.IndexOf("-") + 1)].Class).RefClass.Name; } } }