X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
113 stars 38 forks source link

Winforms Designer creates duplicate properties for file with private class (X#2.12) #1031

Closed VolkmarR closed 2 years ago

VolkmarR commented 2 years ago

Code before adding event handler:

image

Code after adding event handler:

image

RobertvanderHulst commented 2 years ago

You guys are really pushing the VS Form editor to the limit. Why not create a new PRG file with the same partial class that contains the nested class ? I'll try to fix it, but it might be easier if you do not put code like this in the source of the class

VolkmarR commented 2 years ago

I did that to fix this problem. In my concrete example, I've a DataGrid, that shows a items from a list. Since this class is only used inside that form, I prefer to put it inside that class, so no one else uses it.

RobertvanderHulst commented 2 years ago

Chris confirms that this is fixed