Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Code Completion for Events in SD5

$
0
0

Hello!

In sd4 i use code completion to create the method stub for an event handler.


e. g.

button.Click += new TAB TAB

the following stub is generated:

voidbutton_Click(object sender, EventArgs e)
{
    throw new NotImplementedException();
}

This works in sd5 rc only if I subscribe the event in the ide (double click on the button).

If I subscribe in the code, I got the following result:

        this.button.Click += Button1_HandleClick;

.....
        voidHandleClick(object sender, EventArgs e)
        {
            thrownewNotImplementedException();
        }

I know, that it is possible to change the name of the method after creation. But it would be more comfortable if the classname suggested in the method stub.

 

 

Alex


Viewing all articles
Browse latest Browse all 1764

Trending Articles