C# Class StonehearthEditor.FileData

Inheritance: IDisposable
Datei anzeigen Open project: stonehearth/stonehearth-editor Class Usage Examples

Public Methods

Method Description
AddError ( string error ) : void
Clone ( string newPath, CloneObjectParameters parameters, HashSet alreadyCloned, bool execute ) : bool

Dispose ( ) : void
FillDependencyListItems ( ListBox listView ) : void
FillReferencesListItems ( ListBox listView ) : void
GetNameForCloning ( ) : string
Load ( ) : void
ShouldCloneDependency ( string dependencyName, CloneObjectParameters parameters ) : bool
ToString ( ) : string
TrySaveFile ( ) : void
TrySetFlatFileData ( string newData ) : bool
UpdateTreeNode ( TreeNode node, string filter ) : bool

Protected Methods

Method Description
FileData ( string path ) : System
GetDependencies ( ) : FileData>.Dictionary
GetLinkedFileData ( string path ) : FileData
LoadInternal ( ) : void
PostLoad ( ) : void
TryChangeFlatFileData ( string newData, string &newFlatFileData ) : bool

Method Details

AddError() public method

public AddError ( string error ) : void
error string
return void

Clone() public method

public Clone ( string newPath, CloneObjectParameters parameters, HashSet alreadyCloned, bool execute ) : bool
newPath string
parameters CloneObjectParameters
alreadyCloned HashSet
execute bool whether to actual execute the clone. otherwise, this is just a preview
return bool

Dispose() public method

public Dispose ( ) : void
return void

FileData() protected method

protected FileData ( string path ) : System
path string
return System

FillDependencyListItems() public method

public FillDependencyListItems ( ListBox listView ) : void
listView System.Windows.Forms.ListBox
return void

FillReferencesListItems() public method

public FillReferencesListItems ( ListBox listView ) : void
listView System.Windows.Forms.ListBox
return void

GetDependencies() protected method

protected GetDependencies ( ) : FileData>.Dictionary
return FileData>.Dictionary

GetLinkedFileData() protected method

protected GetLinkedFileData ( string path ) : FileData
path string
return FileData

GetNameForCloning() public method

public GetNameForCloning ( ) : string
return string

Load() public method

public Load ( ) : void
return void

LoadInternal() protected method

protected LoadInternal ( ) : void
return void

PostLoad() protected method

protected PostLoad ( ) : void
return void

ShouldCloneDependency() public method

public ShouldCloneDependency ( string dependencyName, CloneObjectParameters parameters ) : bool
dependencyName string
parameters CloneObjectParameters
return bool

ToString() public method

public ToString ( ) : string
return string

TryChangeFlatFileData() protected method

protected TryChangeFlatFileData ( string newData, string &newFlatFileData ) : bool
newData string
newFlatFileData string
return bool

TrySaveFile() public method

public TrySaveFile ( ) : void
return void

TrySetFlatFileData() public method

public TrySetFlatFileData ( string newData ) : bool
newData string
return bool

UpdateTreeNode() public method

public UpdateTreeNode ( TreeNode node, string filter ) : bool
node System.Windows.Forms.TreeNode
filter string
return bool