Changes to CrestronGenericBase

Refactor RfGatewayController

new IHasReady interface

Updates to Hrxx0WirelessRemoteController

merge in development

Addresses #292
This commit is contained in:
Trevor Payne
2020-07-01 16:03:32 -05:00
parent bfa49b4772
commit 2fea151089
4 changed files with 62 additions and 49 deletions

View File

@@ -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; }
}
}