C# Class Nexus.Client.ModManagement.Scripting.XmlScript.UI.Controls.XmlScriptTreeEditorVM

This class encaapsulates the data and operations presented by UI elements that allow the editing of an XmlScript.
Inheritance: XmlScriptTreeViewVM
显示文件 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
CanDelete ( InstallStep p_ispStep ) : bool

Determines if the given InstallStep can be deleted from the XML Script.

XmlScriptTreeEditorVM ( XmlScriptType p_xstScriptType, IList p_lstModFiles ) : System

A simple constructor that initializes the object with the given values.

Protected Methods

Method Description
AddConditionallyInstalledFileSet ( IList p_lstSets ) : void

Adds a new ConditionallyInstalledFileSet to the script.

AddInstallStep ( XmlScript p_xscScript ) : void

Adds a new InstallStep to the script.

AddOption ( OptionGroup p_ogpParent ) : void

Adds a new Option to the script.

AddOptionGroup ( InstallStep p_ispParent ) : void

Adds a new OptionGroup to the script.

DeleteConditionallyInstalledFileSet ( ConditionallyInstalledFileSet p_cisFileSet ) : void

Deletes the given ConditionallyInstalledFileSet from the script.

DeleteInstallStep ( InstallStep p_ispStep ) : void

Deletes the given InstallStep from the script.

DeleteOption ( Option p_optOption ) : void

Deletes the given Option from the script.

DeleteOptionGroup ( OptionGroup p_ogpGroup ) : void

Deletes the given OptionGroup from the script.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the view model

This method hooks into the INotifyPropertyChanged.PropertyChanged event of the Script whenever the Script changes.

Private Methods

Method Description
Script_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the XML Script being edited.

SetSupportedCommands ( ) : void

This resets the editor to respond to changes in the script's version.

Method Details

AddConditionallyInstalledFileSet() protected method

Adds a new ConditionallyInstalledFileSet to the script.
protected AddConditionallyInstalledFileSet ( IList p_lstSets ) : void
p_lstSets IList The list of the XML script's s.
return void

AddInstallStep() protected method

Adds a new InstallStep to the script.
protected AddInstallStep ( XmlScript p_xscScript ) : void
p_xscScript XmlScript The script to which to add the .
return void

AddOption() protected method

Adds a new Option to the script.
protected AddOption ( OptionGroup p_ogpParent ) : void
p_ogpParent OptionGroup
return void

AddOptionGroup() protected method

Adds a new OptionGroup to the script.
protected AddOptionGroup ( InstallStep p_ispParent ) : void
p_ispParent InstallStep The step to which to add the .
return void

CanDelete() public method

Determines if the given InstallStep can be deleted from the XML Script.
public CanDelete ( InstallStep p_ispStep ) : bool
p_ispStep InstallStep The to delete.
return bool

DeleteConditionallyInstalledFileSet() protected method

Deletes the given ConditionallyInstalledFileSet from the script.
protected DeleteConditionallyInstalledFileSet ( ConditionallyInstalledFileSet p_cisFileSet ) : void
p_cisFileSet ConditionallyInstalledFileSet The to delete.
return void

DeleteInstallStep() protected method

Deletes the given InstallStep from the script.
Thrown if the given is the only one /// in the XML script.
protected DeleteInstallStep ( InstallStep p_ispStep ) : void
p_ispStep InstallStep The to delete.
return void

DeleteOption() protected method

Deletes the given Option from the script.
protected DeleteOption ( Option p_optOption ) : void
p_optOption Option The to delete.
return void

DeleteOptionGroup() protected method

Deletes the given OptionGroup from the script.
protected DeleteOptionGroup ( OptionGroup p_ogpGroup ) : void
p_ogpGroup OptionGroup The to delete.
return void

OnPropertyChanged() protected method

Raises the INotifyPropertyChanged.PropertyChanged event of the view model
This method hooks into the INotifyPropertyChanged.PropertyChanged event of the Script whenever the Script changes.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A describing the event arguments.
return void

XmlScriptTreeEditorVM() public method

A simple constructor that initializes the object with the given values.
public XmlScriptTreeEditorVM ( XmlScriptType p_xstScriptType, IList p_lstModFiles ) : System
p_xstScriptType XmlScriptType The type of the script being edited.
p_lstModFiles IList The list of files that are in the 's mod.
return System