mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 02:05:08 +00:00
Changes to CrestronGenericBase
Refactor RfGatewayController new IHasReady interface Updates to Hrxx0WirelessRemoteController merge in development Addresses #292
This commit is contained in:
@@ -6,25 +6,19 @@ using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash_Essentials_Core
|
||||
{
|
||||
public delegate void IsReadyEventHandler(object source, IsReadyEventArgs e);
|
||||
|
||||
public class IsReadyEventArgs : EventArgs
|
||||
{
|
||||
private readonly bool _EventData;
|
||||
public bool IsReady { get; set; }
|
||||
|
||||
public IsReadyEventArgs(bool data)
|
||||
{
|
||||
_EventData = data;
|
||||
}
|
||||
|
||||
public bool GetData()
|
||||
{
|
||||
return _EventData;
|
||||
IsReady = data;
|
||||
}
|
||||
}
|
||||
|
||||
public interface IHasReady
|
||||
{
|
||||
event IsReadyEventHandler IsReady;
|
||||
event EventHandler<IsReadyEventArgs> IsReadyEvent;
|
||||
bool IsReady { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user