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
IServiceProviderIServiceProvider
for this new instance.insertTextIntoCodeFunc
InsertTextIntoCodeDelegateMethod used to insert text into the code.
openStreamForReadingFunc
Func<Stream>Method used to open stream in read mode.
userFileName
stringFile name with the Form designer code.
designedClassName
stringName 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.