TFORMer SDK - NET 8
|
Opens or creates a Repository, opens a stand-alone FormLayout. More...
Public Member Functions | |
Repository (string filename, bool createNewRepository, bool isReadOnly) | |
Constructor for Repository objects. More... | |
JobTrayControl | AddJobTrayControl (string name) |
Creates and adds a new JobTrayControl to the Repository. More... | |
Printer | AddPrinter (string name) |
Creates and adds the Printer to the Repository. More... | |
Project | AddProject (string name) |
Creates and adds the Project in the Repository. More... | |
void | Close (bool commitChanges) |
Close this Repository. More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
JobTrayControl | GetJobTrayControl (string name) |
Gets a JobTrayControl defined in the Repository. More... | |
Printer | GetPrinter (string name) |
Gets the Printer from the Repository. More... | |
Project | GetProject (string name) |
Gets the Project defined in the Repository. More... | |
void | RemoveJobTrayControl (JobTrayControl jobTrayControl) |
Removes the JobTrayControl from the Repository. More... | |
void | RemoveJobTrayControl (string name) |
Removes the JobTrayControl from the Repository. More... | |
void | RemovePrinter (Printer printer) |
Removes the Printer from the Repository. More... | |
void | RemovePrinter (string name) |
Removes the Printer from the Repository. More... | |
void | RemoveProject (Project project) |
Removes the Project from the Repository. More... | |
void | RemoveProject (string name) |
Removes the Project from the Repository. More... | |
void | Save () |
Saves this Repository. More... | |
void | SaveAs (string filename) |
Saves a copy of this Repository. More... | |
override string | ToString () |
Returns a string representation of the instance. More... | |
Properties | |
bool | AutoSave [get, set] |
Gets/Sets a flag indicating whether to save changes to the Repository automatically. More... | |
int | BuildNumber [get] |
Gets the build number of the Repository. More... | |
string | Comment [get, set] |
Gets/Sets the comment for the Repository. More... | |
DataSource | DefaultDataSource [get] |
Gets the default DataSource. More... | |
JobTrayControl | DefaultJobTrayControl [get] |
Gets the default JobTrayControl in the Repository. More... | |
Printer | DefaultPrinter [get] |
Gets the Default Printer of the Repository. More... | |
string | Description [get, set] |
Gets/Sets the description of the Repository. More... | |
DirectoryConnectorList | DirectoryConnectorList [get] |
Gets the DirectoryConnectorList stored in the Repository. More... | |
JobTrayControl | FirstJobTrayControl [get] |
Gets the first JobTrayControl in the Repository. More... | |
Printer | FirstPrinter [get] |
Gets the first Printer stored in the Repository. More... | |
Project | FirstProject [get] |
Gets the first Project stored in the Repository. More... | |
FtpConnectorList | FtpConnectorList [get] |
Gets the FtpConnectorList stored in the Repository. More... | |
string | FullPath [get] |
Gets the full pathname of the Repository. More... | |
Project | GlobalProject [get] |
Gets the global Project of the Repository. More... | |
bool | IsModified [get, set] |
Gets/Sets a flag indicating whether this Repository has been modified. More... | |
bool | IsReadOnly [get] |
Gets a flag indicating whether this Repository is read-only. More... | |
int | NumberOfJobTrayControls [get] |
Gets the number of JobTrayControl-objects stored in the Repository. More... | |
int | NumberOfPrinters [get] |
Gets the number of printers defined in the Repository. More... | |
int | NumberOfProjects [get] |
Gets the number of Project-objects stored in the Repository. More... | |
OdbcConnectorList | OdbcConnectorList [get] |
Gets the OdbcConnectorList stored in the Repository. More... | |
ServerSettings | ServerSettings [get] |
Gets the ServerSettings in the Repository. More... | |
TCPConnector | TCPConnector [get] |
Gets the TCPConnector stored in the Repository. More... | |
UserListener | UserListener [get] |
Gets the UserListener stored in the Repository. More... | |
int | VersionMajor [get] |
Gets the major version number of the Repository. More... | |
int | VersionMinor [get] |
Gets the minor version number of the Repository. More... | |
VirtualPrinter | VirtualPrinter [get] |
Gets the VirtualPrinter stored in the Repository. More... | |
Opens or creates a Repository, opens a stand-alone FormLayout.
A Repository is represented by a master file (extension *.tfr
) and a subfolder structure on the file system. It references an arbitrary number of user-defined Project objects. These user-defined Projects are used to divide a Repository into logical areas. Each Project is a container which holds DataField definitions, DataSource definitions and references an arbitrary number of FormLayout objects.
The so-called GlobalProject is allocated by default and is exclusively used to define DataFields which are available for all FormLayouts regardless of their actual Project membership.
To open a stand-alone FormLayout do the following:
To open a Repository do the following:
*.tfr
) to disk. A stand-alone FormLayout cannot be created, saved or permanently modified on disk via this class.Repository | ( | string | filename, |
bool | createNewRepository, | ||
bool | isReadOnly | ||
) |
Constructor for Repository objects.
Calls native allocation methods and either creates a new Repository or opens an existing Repository or a stand-alone FormLayout.
filename | The full path of a new or existing Repository (see also Passing Files) |
createNewRepository | true if a new Repository should be created, false if an existing Repository should be opened |
isReadOnly | true if Repository should be opened read-only (only when opening an existing Repository) |
JobTrayControl AddJobTrayControl | ( | string | name | ) |
Creates and adds a new JobTrayControl to the Repository.
For a stand-alone FormLayout this method is not available
name | The name of the JobTrayControl. |
Printer AddPrinter | ( | string | name | ) |
Creates and adds the Printer to the Repository.
name | The name the Printer |
Project AddProject | ( | string | name | ) |
Creates and adds the Project in the Repository.
For a stand-alone FormLayout this method is not available. A stand-alone FormLayout contains only a GlobalProject which can't be retrieved by name.
name | The name of the Project |
void Close | ( | bool | commitChanges | ) |
Close this Repository.
Any changes to a stand-alone FormLayout are not written to disk (see Save(), SaveAs() or Repository). Thus you can't create new stand-alone FormLayouts.
commitChanges | If you call this method with commitChanges = false , all changes will be lost (even if AutoSave() is enabled)! |
void Dispose | ( | ) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
The Repository will be closed, changes are saved if AutoSave() is set to true
.
JobTrayControl GetJobTrayControl | ( | string | name | ) |
Gets a JobTrayControl defined in the Repository.
name | The name of the JobTrayControl. |
null
Printer GetPrinter | ( | string | name | ) |
Gets the Printer from the Repository.
name | The name of the Printer |
null
Project GetProject | ( | string | name | ) |
Gets the Project defined in the Repository.
For a stand-alone FormLayout this method is not available. A stand-alone FormLayout contains only a GlobalProject which can't be retrieved by name.
name | The name of the Project |
null
void RemoveJobTrayControl | ( | JobTrayControl | jobTrayControl | ) |
Removes the JobTrayControl from the Repository.
For a stand-alone FormLayout this method is not available
jobTrayControl | The JobTrayControl instance. |
void RemoveJobTrayControl | ( | string | name | ) |
Removes the JobTrayControl from the Repository.
name | The name of the JobTrayControl. |
void RemovePrinter | ( | Printer | printer | ) |
void RemovePrinter | ( | string | name | ) |
Removes the Printer from the Repository.
name | The name of the Printer |
void RemoveProject | ( | Project | project | ) |
Removes the Project from the Repository.
For a stand-alone FormLayout this method is not available.
project | The Project |
void RemoveProject | ( | string | name | ) |
Removes the Project from the Repository.
For a stand-alone FormLayout this method is not available.
name | The name of the Project |
void Save | ( | ) |
Saves this Repository.
For a stand-alone FormLayout this property is not available
void SaveAs | ( | string | filename | ) |
Saves a copy of this Repository.
For a stand-alone FormLayout this method is not available.
filename | The filename of the Repository |
override string ToString | ( | ) |
Returns a string representation of the instance.
|
getset |
Gets/Sets a flag indicating whether to save changes to the Repository automatically.
If AutoSave is set to true
all changes will be saved even when this instance is disposed without calling Close(). If you call Close() directly with commitChanges = false
all changes will be lost!
The state of the AutoSave property is not stored on the hard disk. AutoSave is always true
after creating or opening a Repository with read/write access.
true
changes to the Repository will be saved automatically.
|
get |
Gets the build number of the Repository.
|
getset |
Gets/Sets the comment for the Repository.
For a stand-alone FormLayout this property is not available
|
get |
|
get |
Gets the default JobTrayControl in the Repository.
|
get |
Gets the Default Printer of the Repository.
For a stand-alone FormLayout this property is not available
|
getset |
Gets/Sets the description of the Repository.
For a stand-alone FormLayout this property is always empty
|
get |
Gets the DirectoryConnectorList stored in the Repository.
|
get |
Gets the first JobTrayControl in the Repository.
|
get |
Gets the first Printer stored in the Repository.
|
get |
Gets the first Project stored in the Repository.
For a stand-alone FormLayout always null
is returned. Use GlobalProject instead.
null
if it doesn't exist
|
get |
Gets the FtpConnectorList stored in the Repository.
|
get |
Gets the full pathname of the Repository.
|
get |
Gets the global Project of the Repository.
|
getset |
Gets/Sets a flag indicating whether this Repository has been modified.
true
if this Repository was modified
|
get |
Gets a flag indicating whether this Repository is read-only.
Read-only means that the Repository can be changed in memory but changes won't be written to disk.
true
if this instance is read-only.
|
get |
Gets the number of JobTrayControl-objects stored in the Repository.
|
get |
Gets the number of printers defined in the Repository.
|
get |
Gets the number of Project-objects stored in the Repository.
The GlobalProject is not counted, so the number of Project-objects is always 0 for stand-alone FormLayouts.
|
get |
Gets the OdbcConnectorList stored in the Repository.
|
get |
Gets the ServerSettings in the Repository.
For a stand-alone FormLayout the ServerSettings are not available
|
get |
Gets the TCPConnector stored in the Repository.
|
get |
Gets the UserListener stored in the Repository.
|
get |
Gets the major version number of the Repository.
|
get |
Gets the minor version number of the Repository.
|
get |
Gets the VirtualPrinter stored in the Repository.
© 2006-2023 - all rights reserved by TEC-IT Datenverarbeitung GmbH | |
Generated on Thu Dec 28 2023 18:45:19 for TFORMer SDK - NET with doxygen 1.9.4 |