private void InitalizeGeneralSection(Expandable generalSection) { generalSection.Title = FieldsTranslator.Translate("GeneralSection.Title"); generalSection.Expanded = true; generalSection.AddGeneric("table", table => { table.AddClass("summary-grid"); InitializeNameIn(table); InitializeDataTypeIn(table); InitializeScopeIn(table); InitializePropagationModeIn(table); InitializeIsActiveIn(table); }); }
private void InitializeScopeIn(Control table) { table.AddGeneric("tr", row => { row.AddLabelCell(FieldsTranslator.Translate("Scope.Text"), "lblScope"); row.AddControlCell(container => { container.AddControl(new Label(), lblId => { lblId.ID = "lblScope"; lblId.EnableViewState = false; }); container.AddPropertyBinder("lblScope", "Scope", bndr => bndr.DisplayConversions.Add(new EnumerationTranslation())); }); }); }
private void InitializeNameIn(Control table) { table.AddGeneric("tr", row => { row.AddLabelCell(FieldsTranslator.Translate("Name.Text"), "lblFieldName"); row.AddControlCell(cell => { cell.AddControl(new Label(), lblId => { lblId.ID = "lblFieldName"; lblId.EnableViewState = false; }); cell.AddPropertyBinder("lblFieldName", "Name"); }); }); }