Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 31382f7

Browse files
committed
This is the Visual Studio Style Event Handler: preserve control name case
1 parent 6585614 commit 31382f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/FormsDesigner/CSharpEventBindingService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ protected override string CreateUniqueMethodName(IComponent component, EventDesc
5757
string GetComponentName(IComponent component)
5858
{
5959
string siteName = component.Site.Name;
60+
if (GeneralOptionsPanel.GenerateVisualStudioStyleEventHandlers)
61+
return siteName;
6062
return Char.ToUpper(siteName[0]) + siteName.Substring(1);
6163
}
6264

0 commit comments

Comments
 (0)