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

WinForms code editor: improve renaming

$
0
0

If I rename a WinForms control's name inside the code editor using the built-in function (Strg-R / right-click > Rename/Umbenennen), each occurrence is renamed. Only two situations in the Designer.cs are omitted; I suggest to change these ones in the same way. Say "oldControl" the old name of the control and "newControl" the new name.

// oldControl
newControl.name = "oldControl";

It's a little bit confusing if the comment line isn't changed, but no problem. It may be more confusing if the newControl is registered with the old name. I don't know in which situations the name is used or shown. It would be better to avoid any confusion.

Thanks, Juergen

SharpDevelop Version : 5.0.0.4755-c848dc28
.NET Version         : 4.5.51209


Viewing all articles
Browse latest Browse all 1764

Trending Articles