/// <summary>
        /// Gets the editor to use to edit an <see cref="InstallStep"/>.
        /// </summary>
        /// <param name="p_ispStep">The <see cref="InstallStep"/> to edit.</param>
        /// <param name="p_lstModFiles">The list of files in the mod to which the <see cref="XmlScript"/>
        /// being edited belongs.</param>
        /// <returns>The editor to use to edit an <see cref="InstallStep"/>. <c>null</c> is returned if the
        /// current <see cref="XmlScript"/> does not support editing <see cref="InstallStep"/>s.</returns>
        public virtual NodeEditor GetInstallStepEditor(InstallStep p_ispStep, IList <VirtualFileSystemItem> p_lstModFiles)
        {
            CPLConverter      cvtConverter       = new CPLConverter(ScriptType.GetCplParserFactory());
            ConditionEditorVM vmlConditionEditor = CreateConditionEditorVM(p_lstModFiles, cvtConverter);

            InstallStepEditorVM vmlStepEditor = new InstallStepEditorVM(vmlConditionEditor, p_ispStep, InstallStepProperties.Name | InstallStepProperties.GroupSortOrder | InstallStepProperties.Visibility);

            return(new InstallStepEditor(vmlStepEditor));
        }
示例#2
0
        /// <summary>
        /// Gets the editor to use to edit an <see cref="InstallStep"/>.
        /// </summary>
        /// <param name="p_ispStep">The <see cref="InstallStep"/> to edit.</param>
        /// <param name="p_lstModFiles">The list of files in the mod to which the <see cref="XmlScript"/>
        /// being edited belongs.</param>
        /// <returns>The editor to use to edit an <see cref="InstallStep"/>. <c>null</c> is returned if the
        /// current <see cref="XmlScript"/> does not support editing <see cref="InstallStep"/>s.</returns>
        public override NodeEditor GetInstallStepEditor(InstallStep p_ispStep, IList <VirtualFileSystemItem> p_lstModFiles)
        {
            InstallStepEditorVM vmlStepEditor = new InstallStepEditorVM(null, p_ispStep, InstallStepProperties.GroupSortOrder);

            return(new InstallStepEditor(vmlStepEditor));
        }