Esempio n. 1
0
 /// <summary>
 /// Binds the column template properties.
 /// </summary>
 /// <param name="template">The template.</param>
 /// <param name="node">The node.</param>
 private void BindColumnTemplateProperties(object template, ViewColumnTemplate node)
 {
     // Bind all attributes
     foreach (string key in node.Attributes.Keys)
     {
         ReflectionHelper.BindProperty(template, key, node.Attributes[key]);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleTemplate"/> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="columnTemplate">The column template.</param>
 public SimpleTemplate(UserControl parent, string moduleName, ViewColumnTemplate columnTemplate)
 {
     _ModuleName     = moduleName;
     _columnTemplate = columnTemplate;
     _parent         = parent;
 }