Feature request: Option to create event methods using the method technique

Issue #2 new
Adam Driscoll created an issue

When using PowerShell Pro Tools in VS 2017, event methods are created using the PowerShell "variable" technique, e.g.,

In the designer: $Button.Add_Click($Button_Click)

In the script module:

$Button_Click = 
{
}

These variable script blocks don't show up in the VS drop down list that shows methods.

Please add an option to create event methods using the "function" technique so that the methods show up in the VS method drop down list

In the designer: $Button.Add_Click({Button_Click})

In the script module:

Function Button_Click()
{
}

Comments (0)

  1. Log in to comment