C# Class hoTools.Utils.Configuration.HoToolsGlobalCfg

Inheritance: IHoToolsGlobalCfg
Mostra file Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Public Methods

Method Description
GetFileLong ( string fileName ) : string

Get complete filepath from file name

GetListFileName ( ) : System.Windows.Forms.AutoCompleteStringCollection
GetSqlPaths ( ) : string
ReadSqlFile ( string sqlFileName, bool withErrMessage = true ) : string

Read the SQL file. If it is an absolute path it uses this. If not it uses the SQL Path to find the complete sql file name. In case of IO errors or file not found it return "". If a not existing absolute patch is used an error message is output (if withErrMessage = true, default)

SetSqlPaths ( string paths ) : void

Set hoTools SQL path from Settings to search for SQL files.

getListFileCompleteName ( ) : List

Get list of *.sql files of SQL path

Private Methods

Method Description
HoToolsGlobalCfg ( ) : System.Collections.Generic

Method Details

GetFileLong() public method

Get complete filepath from file name
public GetFileLong ( string fileName ) : string
fileName string
return string

GetListFileName() public method

public GetListFileName ( ) : System.Windows.Forms.AutoCompleteStringCollection
return System.Windows.Forms.AutoCompleteStringCollection

GetSqlPaths() public method

public GetSqlPaths ( ) : string
return string

ReadSqlFile() public method

Read the SQL file. If it is an absolute path it uses this. If not it uses the SQL Path to find the complete sql file name. In case of IO errors or file not found it return "". If a not existing absolute patch is used an error message is output (if withErrMessage = true, default)
public ReadSqlFile ( string sqlFileName, bool withErrMessage = true ) : string
sqlFileName string
withErrMessage bool
return string

SetSqlPaths() public method

Set hoTools SQL path from Settings to search for SQL files.
public SetSqlPaths ( string paths ) : void
paths string
return void

getListFileCompleteName() public method

Get list of *.sql files of SQL path
public getListFileCompleteName ( ) : List
return List