QueryPicker LoadLibrary Method CleanCode C# Libraries v1.2.03 API
Loads (or reloads) the query library.

Namespace: CleanCode.DatabaseControls
Assembly: CleanCode.DatabaseControls (in CleanCode.DatabaseControls.dll) Version: (1.2.03)

public bool LoadLibrary()

Return Value

true if the library was successfully loaded.

The query library includes queries for all supported database types. Most, but not all, queries are available for each database type in the default library. The library file is stored as a resource in the DatabaseControls project. Upon first use of a QueryPicker control, this file is written to the same directory as the executable application with the name 'QueryLibrary.xml'. Once the file has been externalized in that fashion, the user is free to update the library as desired. This LoadLibrary method is available if you wish to reload the library without having to restart your application. In one application, for example, I use Ctrl+F2 to open the QueryPicker and Shift+Ctrl+F2 to first reload the library then open the QueryPicker.
See Also