Ejemplo n.º 1
0
 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);
     });
 }
Ejemplo n.º 2
0
 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()));
         });
     });
 }
Ejemplo n.º 3
0
 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");
         });
     });
 }