C# Class hoTools.Settings.SqlLastOpenedFilesCfg

Administer 10 last opened SQL files - remember the last at max 10 opened SQL files
Exibir arquivo Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools Class Usage Examples

Public Methods

Method Description
Insert ( string fileName ) : void

Insert a SQL file to the beginning of last opened SQL files

Load ( ) : void

Loads last opened sql file names from configuration. File that don't exists are removed from the list.

Remove ( string fileName ) : void

Remove fileName from last opened files

RemoveAll ( ) : void

Remove all file items from last opened files

Save ( ) : void

Save sql file names to configuration. Don't store duplicated file names Make sure the loaded amount is written back

SqlLastOpenedFilesCfg ( Configuration currentConfig ) : System.IO

Constructor which load all last opened file names

Method Details

Insert() public method

Insert a SQL file to the beginning of last opened SQL files
public Insert ( string fileName ) : void
fileName string
return void

Load() public method

Loads last opened sql file names from configuration. File that don't exists are removed from the list.
public Load ( ) : void
return void

Remove() public method

Remove fileName from last opened files
public Remove ( string fileName ) : void
fileName string
return void

RemoveAll() public method

Remove all file items from last opened files
public RemoveAll ( ) : void
return void

Save() public method

Save sql file names to configuration. Don't store duplicated file names Make sure the loaded amount is written back
public Save ( ) : void
return void

SqlLastOpenedFilesCfg() public method

Constructor which load all last opened file names
public SqlLastOpenedFilesCfg ( Configuration currentConfig ) : System.IO
currentConfig System.Configuration.Configuration current Configuration
return System.IO