Table of Contents

Constructor EventBindingServiceBase

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

EventBindingServiceBase(IServiceProvider, InsertTextIntoCodeDelegate, Func<Stream>, string, string, Func<NavigateToUserMethodRequestedEventArgs, bool>)

Initializes a new instance of the EventBindingServiceBase class with specified settings.

public EventBindingServiceBase(IServiceProvider provider, InsertTextIntoCodeDelegate insertTextIntoCodeFunc, Func<Stream> openStreamForReadingFunc, string userFileName, string designedClassName, Func<NavigateToUserMethodRequestedEventArgs, bool> showUserCodeFunc)

Parameters

provider IServiceProvider

IServiceProvider for this new instance.

insertTextIntoCodeFunc InsertTextIntoCodeDelegate

Method used to insert text into the code.

openStreamForReadingFunc Func<Stream>

Method used to open stream in read mode.

userFileName string

File name with the Form designer code.

designedClassName string

Name of the class being designed.

showUserCodeFunc Func<NavigateToUserMethodRequestedEventArgs, bool>

Method used to show user code.

Remarks

You must provide a service provider to the binding service. We give it our host.