ConfigFiles Methods

The ConfigFiles type exposes the following members.

Methods

NameSummary
private methodbuildFileSepMenuCtrl(String, ref XElement, ToolStripMenuItem, String, String, String, Int32, Int32, ref MenuClassStruct)
parses Substrings (filenames in special Folders) contained in nameParts (recursively) of passed xcl config file-path (fullPathName) and adds them to currentBar/currentStrip and sub-menus (recursively)
public methodcontextMenuClickEventHandler(Object, Object)
the event-handler for the context menu entries of the AdHocSQL context menu, used either to show the documentation for the entries or to insert the queries defined in the xcl files
public methodcreateConfigTreeMenu()
creates the ribbon config tree menu and the context menu for the AdHocSQL Dialog by reading the menu elements from the config store folder files/sub-folders
public methodgetFileContent(String)
read content of xcl file
public methodloadConfig(String)
loads config from file given in theFileName
private methodreadAllFiles(String, ref XElement, ref ToolStripMenuItem, String)
reads all files contained in rootPath and its sub-folders (recursively) and adds them recursively to the DBConfig menu ribbon structure and the context menu for the AdHocSQL Dialog simultaneously. For folders contained in specialConfigStoreFolders, apply further structuring by splitting names on camel-case or specialConfigStoreSeparator
private methodreplaceConfigSelectInFormula(String, String)
replace query given in theQueryFormula with template query in ConfigSelect
private methodreplaceQueryInFormula(String, String, String)
replace query given in dbFunctionFormula inside targetFormula containing DB Function "theFunction"
public methodshowTheDocs(String)
shows the Documentation associated with the menu entry having TagString
private methodstringParts(String, String)
returns string in space separated parts (tokenize String following CamelCase switch or when given specialConfigStoreSeparator occurs)