Esempio n. 1
0
 /// <summary>
 /// Adds an extension.
 /// </summary>
 /// <param name="extension">The extension to add.</param>
 public void AddExtension(WixExtension extension)
 {
     if (null != extension.InspectorExtension)
     {
         this.inspectorExtensions.Add(extension.InspectorExtension);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds an extension.
 /// </summary>
 /// <param name="extension">The extension to add.</param>
 public void AddExtension(WixExtension extension)
 {
     if (null != extension.TableDefinitions)
     {
         foreach (TableDefinition tableDefinition in extension.TableDefinitions)
         {
             if (!this.tableDefinitions.Contains(tableDefinition.Name))
             {
                 this.tableDefinitions.Add(tableDefinition);
             }
             else
             {
                 throw new WixException(WixErrors.DuplicateExtensionTable(extension.GetType().ToString(), tableDefinition.Name));
             }
         }
     }
 }