some refactoring and formatting

This commit is contained in:
Andrew Welker
2020-06-24 15:28:31 -06:00
parent bba72e3b31
commit 71a950b04a
2 changed files with 2 additions and 14 deletions

View File

@@ -633,9 +633,7 @@ namespace PepperDash.Essentials
var allRooms = DeviceManager.AllDevices.OfType<EssentialsHuddleSpaceRoom>().Where(d => !d.ExcludeFromGlobalFunctions); var allRooms = DeviceManager.AllDevices.OfType<EssentialsHuddleSpaceRoom>().Where(d => !d.ExcludeFromGlobalFunctions);
foreach (var room in allRooms) foreach (var room in allRooms)
{ {
room.RunRouteAction("roomOff", room.SourceListKey); room.RunRouteAction("roomOff", room.SourceListKey);
} }
} }

View File

@@ -1,16 +1,6 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using Newtonsoft.Json;
using PepperDash.Core;
using PepperDash.Essentials.Core; using PepperDash.Essentials.Core;
using PepperDash.Essentials.Core.Devices;
using PepperDash.Essentials.Core.Config; using PepperDash.Essentials.Core.Config;
using PepperDash.Essentials.Room.Config;
namespace PepperDash.Essentials namespace PepperDash.Essentials
{ {
@@ -23,7 +13,7 @@ namespace PepperDash.Essentials
public Dictionary<eSourceListItemDestinationTypes, IRoutingSinkWithSwitching> Displays { get; protected set;} public Dictionary<eSourceListItemDestinationTypes, IRoutingSinkWithSwitching> Displays { get; protected set;}
public EssentialsNDisplayRoomBase(DeviceConfig config) protected EssentialsNDisplayRoomBase(DeviceConfig config)
: base (config) : base (config)
{ {
Displays = new Dictionary<eSourceListItemDestinationTypes, IRoutingSinkWithSwitching>(); Displays = new Dictionary<eSourceListItemDestinationTypes, IRoutingSinkWithSwitching>();