public InstallStepsEditor(InstallStepsEditorVM p_vmlViewModel) { InitializeComponent(); ViewModel = p_vmlViewModel; }
/// <summary> /// Gets the editor to use to edit the <see cref="XmlScript"/>'s install step order. /// </summary> /// <param name="p_xscScript">The <see cref="XmlScript"/> whose install step order is to be edited.</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 the <see cref="XmlScript"/>'s install step order. <c>null</c> is returned if the /// current <see cref="XmlScript"/> does not support editing the install step order.</returns> public virtual NodeEditor GetInstallStepOrderEditor(ModManagement.Scripting.XmlScript.XmlScript p_xscScript, IList<VirtualFileSystemItem> p_lstModFiles) { InstallStepsEditorVM vmlStepsEditor = new InstallStepsEditorVM(p_xscScript); return new InstallStepsEditor(vmlStepsEditor); }