// The setup constructor will be called each time this plugin's setup is opened from the CF Setting Page // This setup is opened as a dialog from the CF_pluginShowSetup() call into the main plugin application form. public Setup(ICFMain mForm, ConfigReader config, LanguageReader lang) { // MainForm must be set before calling any Centrafuse API functions this.MainForm = mForm; // pluginConfig and pluginLang should be set before calling CF_initSetup() so this CFSetup instance // will internally save any changed settings. this.pluginConfig = config; this.pluginLang = lang; // When CF_initSetup() is called, the CFPlugin layer will call back into CF_setupReadSettings() to read the page // Note that this.pluginConfig and this.pluginLang must be set before making this call CF_initSetup(1, 1); // Update the Settings page title this.CF_updateText("TITLE", this.pluginLang.ReadField("/APPLANG/SETUP/TITLE")); }