C# Class hoTools.Query.SqlFile

Information of a *.sql file: -FullName -DisplayName -isChanged -TabPage -SqlTabPages
Inheritance: IDisposable
Mostra file Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Load ( ) : string

Load from file. Note currently the change event will make the text box change. Therefore you have later to set IsChanged to false;

Save ( string text ) : bool

Save to file

SqlFile ( SqlTabPagesCntrl sqlTabPagesCntrl, string fullName, bool isChanged = true ) : System

Constructor. If the file is persistent then register a Watcher - Initialize file system watcher

Private Methods

Method Description
InitTabPageCaption ( string fullName, bool isChanged ) : void

Initialize the TabPage information.

OnChanged ( string path ) : void

Wait for event from FileSystemMonitor.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Load() public method

Load from file. Note currently the change event will make the text box change. Therefore you have later to set IsChanged to false;
public Load ( ) : string
return string

Save() public method

Save to file
public Save ( string text ) : bool
text string
return bool

SqlFile() public method

Constructor. If the file is persistent then register a Watcher - Initialize file system watcher
public SqlFile ( SqlTabPagesCntrl sqlTabPagesCntrl, string fullName, bool isChanged = true ) : System
sqlTabPagesCntrl SqlTabPagesCntrl
fullName string
isChanged bool Default=true
return System