C# Класс hoTools.Query.SqlFile

Information of a *.sql file: -FullName -DisplayName -isChanged -TabPage -SqlTabPages
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
InitTabPageCaption ( string fullName, bool isChanged ) : void

Initialize the TabPage information.

OnChanged ( string path ) : void

Wait for event from FileSystemMonitor.

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Load() публичный Метод

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
Результат string

Save() публичный Метод

Save to file
public Save ( string text ) : bool
text string
Результат bool

SqlFile() публичный Метод

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
Результат System