Class SmartEvent
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
It inherits IInvalidatable. EvasObject can elect the SmartEvent occurring inside them, to be reported back to their users via delegates. This way, you can extend EvasObject's own EvasObjectEvent. They are defined by an event string, which identifies them uniquely.
[Obsolete("This has been deprecated in API12")]
public class SmartEvent : IInvalidatable, IDisposable
- Inheritance
-
objectSmartEvent
- Implements
-
System.IDisposable
Constructors
View SourceSmartEvent(EvasObject, string)
Creates and initializes a new instance of the SmartEvent class.
Declaration
[Obsolete("This has been deprecated in API12")]
public SmartEvent(EvasObject sender, string eventName)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | sender | The source of the event. |
string | eventName | The event name. |
Methods
View SourceDispose()
Destroys the current object.
Declaration
[Obsolete("This has been deprecated in API12")]
public void Dispose()
Dispose(bool)
Releases all the resources currently used by this instance.
Declaration
[Obsolete("This has been deprecated in API12")]
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true if the managed resources should be disposed, otherwise false. |
~SmartEvent()
Destroys the SmartEvent object.
Declaration
protected ~SmartEvent()
MakeInvalidate()
Makes the current instance invalidate.
Declaration
[Obsolete("This has been deprecated in API12")]
public void MakeInvalidate()
Events
View SourceOn
Adds or removes a delegate for the event.
Declaration
[Obsolete("This has been deprecated in API12")]
public event EventHandler On
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
System.IDisposable