func init pname = this.props("Name").value ptype = this.props("Type").value pscope = this.props("Scope").value if(not settings.contain(pname)) settings.add(pname) blk_settings.println('').inc() .println('', code(this.props("Value").value), '') .dec().println('') blk_settings_designer.println('[global::System.Configuration.', pscope, 'ScopedSettingAttribute()]') .println('[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]') .println('[global::System.Configuration.DefaultSettingValueAttribute(', this.props("Value").value, ')]') .println('public ', ptype, ' ', code(pname), ' {').inc() .println('get {').inc() .println('return ((', ptype, ')(this[', pname, ']));') .dec().println('}') if(pscope == 'User') blk_settings_designer.println('set {').inc() .println('this[', pname, '] = value;') .dec().println('}') end blk_settings_designer.dec().println('}') else error(this.name + ' - setting ' + pname + ' already defined.') end // initialize common events and properties include("ApplicationSettingsBase-init") end func doValue(data) blk.println('Properties.Settings.Default.' + code(this.props("Name").value), ' = ', d("Data"), ';') end func Value return('Properties.Settings.Default.' + code(this.props("Name").value)) end //func doSave() // blk.println('Properties.Settings.Default.Save();') //end include("ApplicationSettingsBase") include("SettingsBase")