Class EventBindingServiceBase
- Namespace
- Alternet.FormDesigner.WinForms
- Assembly
- Alternet.FormDesigner.v9.dll
This class provides a default implementation of the event binding service. This class is abstract.
public abstract class EventBindingServiceBase : IEventBindingServiceExtended, IEventBindingService
- Inheritance
-
EventBindingServiceBase
- Implements
Constructors
- EventBindingServiceBase(IServiceProvider, InsertTextIntoCodeDelegate, Func<Stream>, string, string, Func<NavigateToUserMethodRequestedEventArgs, bool>)
Initializes a new instance of the
EventBindingServiceBase
class with specified settings.
Properties
- DesignedClassName
Represents name of the class being designed.
- UserFileName
Represents file name with the form designer code.
Methods
- CreateUniqueMethodName(IComponent, EventDescriptor)
This creates a name for an event handling method for the given component and event. The name that is created is guaranteed to be unique in the user's source code.
- GetCompatibleMethods(EventDescriptor)
Retrieves a collection of strings. Each string is the name of a method in user code that has a signature that is compatible with the given event.
- GetEvent(PropertyDescriptor)
For properties that are representing events, this will return the event that the property represents.
- GetEventProperties(EventDescriptorCollection)
Converts a set of events to a set of properties.
- GetEventProperty(EventDescriptor)
Converts a single event to a property.
- ShowCode()
Shows the user code. This method does not show any particular code; generally it shows the last code the user typed. This returns true if it was possible to show the code, or false if not. We are never showing code since we do not generate handler methods.
- ShowCode(IComponent, EventDescriptor)
Displays the user code for the given event.
- ShowCode(int)
Shows the user code at the given line number. Line numbers are one-based. This returns true if it was possible to show the code, or false if not. We are never showing code since we do not generate handler methods.