C# Класс Nexus.Client.ModAuthoring.Project

Encapsulates the properties of a mod creation project.
Наследование: ObservableObject, IModInfo, IScriptedMod
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Project ( IScriptTypeRegistry p_strScriptTypeRegistry ) : System

A simple constructor that initializes the object with the required dependencies.

Project ( string p_strPath, IScriptTypeRegistry p_strScriptTypeRegistry ) : System

A simple constructor that initializes the object with the required dependencies.

Save ( string p_strPath ) : void

Saves the project to a file.

The specified file will be overwriiten.

SaveInfo ( XmlDocument p_xmlDocument, bool p_booEncodeScreenshot ) : XmlNode

Serializes the given IModInfo to an XML fragment.

UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void

Updates the object's proerties to the values of the given IModInfo.

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

Метод Описание
InstallScript_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the InstallScript.

Load ( string p_strPath ) : void

Loads the project from a file.

LoadInfo ( XmlNode p_xndInfo ) : void

Deserializes an IModInfo from the given XML fragment into the given IModInfo.

LoadInfo ( XmlNode p_xndInfo, bool p_booFillOnlyEmptyValues ) : void

Deserializes an IModInfo from the given XML fragment into the given IModInfo.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

This marks the project as dirty.

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

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

Handles the INotifyPropertyChanged.PropertyChanged event of the InstallScript.
protected InstallScript_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object The object that raised the event.
e System.ComponentModel.PropertyChangedEventArgs A describing the event arguments.
Результат void

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

Loads the project from a file.
protected Load ( string p_strPath ) : void
p_strPath string The path to the file from which to load the project.
Результат void

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

Deserializes an IModInfo from the given XML fragment into the given IModInfo.
protected LoadInfo ( XmlNode p_xndInfo ) : void
p_xndInfo System.Xml.XmlNode The XML fragment from which to deserialize the .
Результат void

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

Deserializes an IModInfo from the given XML fragment into the given IModInfo.
protected LoadInfo ( XmlNode p_xndInfo, bool p_booFillOnlyEmptyValues ) : void
p_xndInfo System.Xml.XmlNode The XML fragment from which to deserialize the .
p_booFillOnlyEmptyValues bool Whether to only overwrite null or empty values.
Результат void

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

Raises the INotifyPropertyChanged.PropertyChanged event of the project.
This marks the project as dirty.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A describing the event arguments.
Результат void

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

A simple constructor that initializes the object with the required dependencies.
public Project ( IScriptTypeRegistry p_strScriptTypeRegistry ) : System
p_strScriptTypeRegistry IScriptTypeRegistry The contianing the list of available script types.
Результат System

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

A simple constructor that initializes the object with the required dependencies.
public Project ( string p_strPath, IScriptTypeRegistry p_strScriptTypeRegistry ) : System
p_strPath string The path from which to load saved project data.
p_strScriptTypeRegistry IScriptTypeRegistry The contianing the list of available script types.
Результат System

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

Saves the project to a file.
The specified file will be overwriiten.
public Save ( string p_strPath ) : void
p_strPath string The path to the file in which to save the project.
Результат void

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

Serializes the given IModInfo to an XML fragment.
public SaveInfo ( XmlDocument p_xmlDocument, bool p_booEncodeScreenshot ) : XmlNode
p_xmlDocument System.Xml.XmlDocument The to use to create the XML elements /// created during the unparsing.
p_booEncodeScreenshot bool Whether or not to encode the /// into the XML fragment.
Результат System.Xml.XmlNode

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

Updates the object's proerties to the values of the given IModInfo.
public UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void
p_mifInfo IModInfo The whose values /// are to be used to update this object's properties.
p_booOverwriteAllValues bool Whether to overwrite the current info values, /// or just the empty ones.
Результат void