Constructor EventBindingServiceBase
- Namespace
- Alternet.FormDesigner.WinForms
- Assembly
- Alternet.FormDesigner.v10.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
providerIServiceProviderIServiceProviderfor this new instance.insertTextIntoCodeFuncInsertTextIntoCodeDelegateMethod used to insert text into the code.
openStreamForReadingFuncFunc<Stream>Method used to open stream in read mode.
userFileNamestringFile name with the Form designer code.
designedClassNamestringName of the class being designed.
showUserCodeFuncFunc<NavigateToUserMethodRequestedEventArgs, bool>Method used to show user code.
Remarks
You must provide a service provider to the binding service. We give it our host.