C# Класс 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.
Наследование: XmlScriptTreeViewVM
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddConditionallyInstalledFileSet() защищенный Метод

Adds a new ConditionallyInstalledFileSet to the script.
protected AddConditionallyInstalledFileSet ( IList p_lstSets ) : void
p_lstSets IList The list of the XML script's s.
Результат void

AddInstallStep() защищенный Метод

Adds a new InstallStep to the script.
protected AddInstallStep ( XmlScript p_xscScript ) : void
p_xscScript XmlScript The script to which to add the .
Результат void

AddOption() защищенный Метод

Adds a new Option to the script.
protected AddOption ( OptionGroup p_ogpParent ) : void
p_ogpParent OptionGroup
Результат void

AddOptionGroup() защищенный Метод

Adds a new OptionGroup to the script.
protected AddOptionGroup ( InstallStep p_ispParent ) : void
p_ispParent InstallStep The step to which to add the .
Результат void

CanDelete() публичный Метод

Determines if the given InstallStep can be deleted from the XML Script.
public CanDelete ( InstallStep p_ispStep ) : bool
p_ispStep InstallStep The to delete.
Результат bool

DeleteConditionallyInstalledFileSet() защищенный Метод

Deletes the given ConditionallyInstalledFileSet from the script.
protected DeleteConditionallyInstalledFileSet ( ConditionallyInstalledFileSet p_cisFileSet ) : void
p_cisFileSet ConditionallyInstalledFileSet The to delete.
Результат void

DeleteInstallStep() защищенный Метод

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.
Результат void

DeleteOption() защищенный Метод

Deletes the given Option from the script.
protected DeleteOption ( Option p_optOption ) : void
p_optOption Option The to delete.
Результат void

DeleteOptionGroup() защищенный Метод

Deletes the given OptionGroup from the script.
protected DeleteOptionGroup ( OptionGroup p_ogpGroup ) : void
p_ogpGroup OptionGroup The to delete.
Результат void

OnPropertyChanged() защищенный Метод

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.
Результат void

XmlScriptTreeEditorVM() публичный Метод

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.
Результат System