func init // adds using namespace sys.add_use('System.Drawing') // initialize instance params = this.props('Constructor').value if(params == 'Constructor') params = '' + sys.get_typed_field('this.Icon, 16, 16', 'Stream', 10) elseif(params == 'Constructor2') params = '' + d("FileName") elseif(params == 'Constructor3') params = '' + sys.get_typed_field('this.Icon', 'Original', 6) + ', ' + d("Size", 20, 'new Size(16, 16)') elseif(params == 'Constructor4') params = '' + sys.get_typed_field('this.Icon, 16, 16', 'Stream', 10) + ', ' + d("Size", 20, 'new Size(16, 16)') elseif(params == 'Constructor5') params = '' + d("fileName") + ', ' + d("Size", 20, 'new Size(16, 16)') elseif(params == 'Constructor6') params = '' + d("type", 20, 'typeof(Form)') + ', ' + d("resource") elseif(params == 'Constructor7') params = '' + sys.get_typed_field('this.Icon', 'Original', 6) + ', ' + d("width", 1, 16) + ', ' + d("height", 1, 16) elseif(params == 'Constructor8') params = '' + sys.get_typed_field('this.Icon, 16, 16', 'Stream', 10) + ', ' + d("width", 1, 16) + ', ' + d("height", 1, 16) elseif(params == 'Constructor9') params = '' + d("fileName") + ', ' + d("width", 1, 16) + ', ' + d("height", 1, 16) end sys.add_object(this.codename, 'Icon', params) // makes implementation methods for properties sys._prop_init('.Handle', 1, 0, 0) sys._prop_init('.Height', 1, 0, 1) sys._prop_init('.Size', 1, 0, 0) sys._prop_init('.Width', 1, 0, 1) // makes implementation of methods as properties sys._mtd_as_prop_init('Clone()') sys._mtd_as_prop_init('ToBitmap()') sys._mtd_as_prop_init('ToString()') sys._mtd_as_prop_init('Icon') // makes implementation of simple methods sys._method_init('Dispose') end func doConstructor(data) blk.println(this.codename, ' = new Icon(', sys.get_typed_field(data, 'Stream', 10), ');') end func doConstructor2(data) blk.println(this.codename, ' = new Icon(', d("fileName"), ');') end func doConstructor3(data) blk.println(this.codename, ' = new Icon(', sys.get_typed_field(data, 'Original', 6), ', ', d("Size", 20), ');') end func doConstructor4(data) blk.println(this.codename, ' = new Icon(', sys.get_typed_field(data, 'Stream', 10), ', ', d("Size", 20), ');') end func doConstructor5(data) blk.println(this.codename, ' = new Icon(', d("fileName"), ', ', d("Size", 20), ');') end func doConstructor6(data) blk.println(this.codename, ' = new Icon(', d("type", 20), ', ', d("resource"), ');') end func doConstructor7(data) blk.println(this.codename, ' = new Icon(', sys.get_typed_field(data, 'Original', 6), ', ', d("width"), ', ', d("height"), ');') end func doConstructor8(data) blk.println(this.codename, ' = new Icon(', sys.get_typed_field(data, 'Stream', 10), ', ', d("width"), ', ', d("height"), ');') end func doConstructor9(data) blk.println(this.codename, ' = new Icon(', d("fileName"), ', ', d("width"), ', ', d("height"), ');') end func doExtractAssociatedIcon(data) blk.println(this.codename, ' = Icon.ExtractAssociatedIcon(', d("filePath"), ');') event("onExtractAssociatedIcon", this.codename) end func doFromHandle(data) blk.println(this.codename, ' = Icon.FromHandle(', d("handle"), ');') event("onFromHandle", this.codename) end func doSave(data) blk.println(this.codename, '.Save(', d("outputStream"), ');') end