func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize properties if(not linked("options")) a = this.props("Options").value flg = ((a _and_ 1) ? '|MessageBoxOptions.ServiceNotification' : '') + ((a _and_ 2) ? '|MessageBoxOptions.DefaultDesktopOnly' : '') + ((a _and_ 4) ? '|MessageBoxOptions.RightAlign' : '') + ((a _and_ 8) ? '|MessageBoxOptions.RtlReading' : '') this.options = '0' + flg end // initialize temp variable if(linked("onResult") and not user_level) sys.add_var('temp', 'DialogResult') end end func doShow(data) if(linked("onResult")) if(user_level) event("onResult", 'MessageBox.Show(' + d("Text") + ')') else blk.println(this.temp, ' = MessageBox.Show(', d("Text"), ');') event("onResult", this.temp) end else blk.println('MessageBox.Show(', d("Text"), ');') end end func doShow2(data) if(linked("onResult")) if(user_level) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ')') else blk.println(this.temp, ' = MessageBox.Show(', d("Text"), ', ', d("Caption"), ');') event("onResult", this.temp) end else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ');') end end func doShow3(data) if(linked("onResult")) if(user_level) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ')') else blk.println(this.temp,' = MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ');') event("onResult", this.temp) end else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ');') end end func doShow4(data) if(linked("onResult")) if(user_level) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ')') else blk.println(this.temp,' = MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ');') event("onResult", this.temp) end else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ');') end end func doShow5(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ');') end end func doShow6(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ');') end end func doShow7(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ');') end end func doShow8(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ');') end end func doShow9(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ');') end end func doShow10(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ');') end end func doShow11(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : linked("options") ? d("options") : this.options, ');') end end func doShow12(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ');') end end func doShow13(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + lower(this.props("HelpButton").value) + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', lower(this.props("HelpButton").value), ');') end end func doShow14(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ');') end end func doShow15(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ');') end end func doShow16(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + d("keyword") + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', d("keyword"), ');') end end func doShow17(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + (linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator")) + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator"), ');') end end func doShow18(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + d("keyword") + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', d("keyword"), ');') end end func doShow19(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + (linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator")) + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator"), ');') end end func doShow20(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + (linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator")) + ', ' + d("param") + ')') else blk.println('MessageBox.Show(', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator"), ', ', d("param"), ');') end end func doShow21(data) if(linked("onResult")) event("onResult", 'MessageBox.Show(' + d("owner") + ', ' + d("Text") + ', ' + d("Caption") + ', ' + (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")) + ', ' + (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")) + ', ' + (linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton")) + ', ' + (linked("options") ? d("options") : this.options) + ', ' + d("HelpFilePath") + ', ' + (linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator")) + ', ' + d("param") + ')') else blk.println('MessageBox.Show(', d("owner"), ', ', d("Text"), ', ', d("Caption"), ', ', (linked("buttons") ? d("buttons") : 'MessageBoxButtons.' + this.props("Buttons")), ', ', (linked("icon") ? d("icon") : 'MessageBoxIcon.' + this.props("Icon")), ', ', linked("default") ? d("default") : 'MessageBoxDefaultButton.' + this.props("DefaultButton"), ', ', linked("options") ? d("options") : this.options, ', ', d("HelpFilePath"), ', ', linked("navigator") ? d("navigator") : 'HelpNavigator.' + this.props("Navigator"), ', ', d("param"), ');') end end