func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize instance sys.add_object(this.codename, 'AutoCompleteStringCollection') // initialize properties if(not isdef('List')) blk_init.println(this.codename, '.AddRange(', sys.get_field_type_array('List', 'string'), ');') end // makes implementation methods for properties sys._prop_init('Count', 1, 0, 1) sys._prop_init('IsReadOnly', 1, 0, 104) sys._prop_init('IsSynchronized', 1, 0, 104) sys._prop_init('SyncRoot', 1, 0, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('GetEnumerator()') sys._mtd_as_prop_init('AutoCompleteStringCollection') // makes implementation of simple methods sys._method_init('Clear') // initialize events sys.add_event_type('onCollectionChanged', 'CollectionChanged', 'CollectionChangeEvent', 'args') // initialize common events and properties include("Object-init") end func doAdd(value) if(linked("onAdd")) event("onAdd", this.codename + '.Add(' + d("value") + ')') else blk.println(this.codename, '.Add(', d("value"), ');') end end func doAddRange(value) blk.println(this.codename, '.AddRange(', d("value"), ');') end func doContains(value) if(linked("onContains")) event("onContains", this.codename + '.Contains(' + d("value") + ')') else blk.println(this.codename, '.Contains(', d("value"), ');') end end func doCopyTo(array, index) blk.println(this.codename, '.CopyTo(', d("array"), ', ', d("index"), ');') end func doIndexOf(value) if(linked("onIndexOf")) event("onIndexOf", this.codename + '.IndexOf(' + d("value") + ')') else blk.println(this.codename, '.IndexOf(', d("value"), ');') end end func doInsert(index, value) blk.println(this.codename, '.Insert(', d("index"), ', ', d("value"), ');') end func doRemove(value) blk.println(this.codename, '.Remove(', d("value"), ');') end func doRemoveAt(index) blk.println(this.codename, '.RemoveAt(', d("index"), ');') end func Item return(this.codename && '[' && d('index') && ']') end func doItem(data) blk.println(this.codename, '[', d('index'), '] = ', sys.to_type(data, 2), ';') end