mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-02 06:14:52 +00:00
feat(essentials): Reworks logic in InitializeSystem() to be a bit cleaner using a CEvent and the existing AllDeviceActivated event
This commit is contained in:
@@ -28,11 +28,9 @@ namespace PepperDash.Essentials.Core
|
||||
public static List<IKeyed> AllDevices { get { return new List<IKeyed>(Devices.Values); } }
|
||||
|
||||
public static bool AddDeviceEnabled;
|
||||
public static bool AllDevicesActivatedFb;
|
||||
|
||||
public static void Initialize(CrestronControlSystem cs)
|
||||
{
|
||||
AllDevicesActivatedFb = false;
|
||||
AddDeviceEnabled = true;
|
||||
CrestronConsole.AddNewConsoleCommand(ListDeviceCommStatuses, "devcommstatus", "Lists the communication status of all devices",
|
||||
ConsoleAccessLevelEnum.AccessOperator);
|
||||
@@ -124,7 +122,6 @@ namespace PepperDash.Essentials.Core
|
||||
|
||||
private static void OnAllDevicesActivated()
|
||||
{
|
||||
AllDevicesActivatedFb = true;
|
||||
var handler = AllDevicesActivated;
|
||||
if (handler != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user