Created
April 5, 2016 07:48
-
-
Save mobius/944f46419318352523a7910ccf29e005 to your computer and use it in GitHub Desktop.
convert winform designer generated InitializeComponents to ironpython script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove various cast | |
replace \(\([\w.]+\) | |
with ( | |
# change this with self | |
# change size 10F to 10 | |
replace (\d+)F | |
with $1 | |
# replace } as ,) replace { as ( when AddRange | |
# also remove AddRange[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment