// adds using namespace sys.add_use('System.Windows.Forms') // initialize properties sys.set_undef_field_const('AutoSizeMode', this.props('AutoSizeMode'), 'System.Windows.Forms.AutoSizeMode') sys.set_undef_field_const('AutoValidate', this.props('AutoValidate'), 'System.Windows.Forms.AutoValidate') sys.set_undef_field_const('BorderStyle', this.props('BorderStyle'), 'System.Windows.Forms.BorderStyle') // initialize events if(not (this.onAutoSizeChanged == 'defined')) sys.add_event_type('onAutoSizeChanged', 'AutoSizeChanged', 'Event', 'args') end if(not (this.onAutoValidateChanged == 'defined')) sys.add_event_type('onAutoValidateChanged', 'AutoValidateChanged', 'Event', 'args') end if(not (this.onLoad == 'defined')) sys.add_event_type('onLoad', 'Load', 'Event', 'args') end