Beispiel #1
0
 /// <summary>
 /// A simple constructor that initializes the script with the specified values.
 /// </summary>
 /// <param name="p_xstScripType">The script's type.</param>
 /// <param name="p_verVersion">The version of the script.</param>
 /// <param name="p_hdrHeader">The <see cref="HeaderInfo"/> of the script.</param>
 /// <param name="p_cndModPrerequisites">The mod prerequisites encoded in the script.</param>
 /// <param name="p_lstRequiredInstallFiles">The list of files that the script requires to be installed, regardless
 /// of other script options.</param>
 /// <param name="p_lstInstallSteps">The script's <see cref="InstallStep"/>s.</param>
 /// <param name="p_srtStepOrder">The order of the script's <see cref="InstallStep"/>s.</param>
 /// <param name="p_lstConditionallyInstalledFileSets">The list of file sets that the script wants installed if certain conditions
 /// are satified.</param>
 public XmlScript(XmlScriptType p_xstScripType, Version p_verVersion, HeaderInfo p_hdrHeader, ICondition p_cndModPrerequisites, IList <InstallableFile> p_lstRequiredInstallFiles, List <InstallStep> p_lstInstallSteps, SortOrder p_srtStepOrder, List <ConditionallyInstalledFileSet> p_lstConditionallyInstalledFileSets)
 {
     Type                            = p_xstScripType;
     Version                         = p_verVersion;
     HeaderInfo                      = p_hdrHeader;
     ModPrerequisites                = p_cndModPrerequisites;
     RequiredInstallFiles            = (p_lstRequiredInstallFiles == null) ? new ThreadSafeObservableList <InstallableFile>() : new ThreadSafeObservableList <InstallableFile>(p_lstRequiredInstallFiles);
     InstallSteps                    = (p_lstInstallSteps == null) ? new ThreadSafeObservableList <InstallStep>() : new ThreadSafeObservableList <InstallStep>(p_lstInstallSteps);
     InstallSteps.CollectionChanged += new NotifyCollectionChangedEventHandler(InstallSteps_CollectionChanged);
     InstallStepSortOrder            = p_srtStepOrder;
     ConditionallyInstalledFileSets  = (p_lstConditionallyInstalledFileSets == null) ? new ThreadSafeObservableList <ConditionallyInstalledFileSet>() : new ThreadSafeObservableList <ConditionallyInstalledFileSet>(p_lstConditionallyInstalledFileSets);
 }
Beispiel #2
0
 /// <summary>
 /// A simple constructor that initializes the script with the specified values.
 /// </summary>
 /// <param name="p_xstScripType">The script's type.</param>
 /// <param name="p_verVersion">The version of the script.</param>
 public XmlScript(XmlScriptType p_xstScripType, Version p_verVersion)
     : this(p_xstScripType, p_verVersion, new HeaderInfo(), null, null, null, SortOrder.Explicit, null)
 {
 }