C# Class CardMaker.Data.LayoutTemplateManager

Handles LayoutTemplate management
Mostrar archivo Open project: nhmkdev/cardmaker

Public Methods

Method Description
DeleteLayoutTemplate ( string sStartupPath, CardMaker.XML.LayoutTemplate zLayoutTemplate ) : void

Deletes the specified layout template

LoadLayoutTemplates ( string sStartupPath ) : void

Loads the template files from the specified startup path

SaveLayoutTemplate ( string sStartupPath, CardMaker.XML.LayoutTemplate zLayoutTemplate ) : bool

Saves the specified layout template

Private Methods

Method Description
ReplaceNonFileSafeCharacters ( string sInput ) : string

Replaces any non file safe characters

Method Details

DeleteLayoutTemplate() public method

Deletes the specified layout template
public DeleteLayoutTemplate ( string sStartupPath, CardMaker.XML.LayoutTemplate zLayoutTemplate ) : void
sStartupPath string The path containing the templates folder
zLayoutTemplate CardMaker.XML.LayoutTemplate The template to delete
return void

LoadLayoutTemplates() public method

Loads the template files from the specified startup path
public LoadLayoutTemplates ( string sStartupPath ) : void
sStartupPath string The path containing the templates folder
return void

SaveLayoutTemplate() public method

Saves the specified layout template
public SaveLayoutTemplate ( string sStartupPath, CardMaker.XML.LayoutTemplate zLayoutTemplate ) : bool
sStartupPath string The path containing the templates folder
zLayoutTemplate CardMaker.XML.LayoutTemplate The template to save
return bool