|
|
|
@ -474,7 +474,7 @@ namespace ICSharpCode.FormsDesigner |
|
|
|
LoggingService.Debug("Forms designer: AbstractDesignerGenerator.InsertComponentEvent: eventMethodName=" + eventMethodName); |
|
|
|
LoggingService.Debug("Forms designer: AbstractDesignerGenerator.InsertComponentEvent: eventMethodName=" + eventMethodName); |
|
|
|
|
|
|
|
|
|
|
|
foreach (IMethod method in completeClass.Methods) { |
|
|
|
foreach (IMethod method in completeClass.Methods) { |
|
|
|
if (method.Name == eventMethodName) { |
|
|
|
if (CompareMethodNames(method.Name, eventMethodName)) { |
|
|
|
file = method.DeclaringType.CompilationUnit.FileName; |
|
|
|
file = method.DeclaringType.CompilationUnit.FileName; |
|
|
|
OpenedFile openedFile = FileService.GetOpenedFile(file); |
|
|
|
OpenedFile openedFile = FileService.GetOpenedFile(file); |
|
|
|
IDocument doc; |
|
|
|
IDocument doc; |
|
|
|
@ -513,6 +513,11 @@ namespace ICSharpCode.FormsDesigner |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected virtual bool CompareMethodNames(string strA, string strB) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return strA == strB; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a method implementing the signature specified by the event descriptor
|
|
|
|
/// Gets a method implementing the signature specified by the event descriptor
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
|