Reporter | Denis Abramov (sparky2708) |
---|---|
Created | Mar 2, 2011 2:57:15 AM |
Updated | Jan 23, 2012 2:37:29 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Alexey Kuptsov (alexey.kuptsov) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
Suppose I have:
Suppose ErrorOccurred doesn't exist in my code and I am trying to get R# to generate it.
2 Points:
(1) Since I am doing a RAISEEVENT then "ErrorOccured" CAN'T BE A METHOD OR OTHER THING EXCEPT FOR AN EVENT. Do I really need to see all the other options?
(2) When I select "create event ErrorOcurred" I get:
Which is wrong. Should be:
Private Sub OnError(ByVal sender As Object, ByVal e As FillErrorEventArgs) RaiseEvent ErrorOcurred(sender, e) End Sub
Suppose ErrorOccurred doesn't exist in my code and I am trying to get R# to generate it.
2 Points:
(1) Since I am doing a RAISEEVENT then "ErrorOccured" CAN'T BE A METHOD OR OTHER THING EXCEPT FOR AN EVENT. Do I really need to see all the other options?
(2) When I select "create event ErrorOcurred" I get:
Private Event ErrorOcurredAs EventHandler(Of FillErrorEventArgs)
Which is wrong. Should be:
Private Event ErrorOcurred(ByVal sender As Object, ByVal e As FillErrorEventArgs)