makes IDpad explicitly inherit from IKeyed

This commit is contained in:
Andrew Welker
2020-04-08 11:35:09 -06:00
parent 23b3ed2416
commit d370564900
3 changed files with 10 additions and 4 deletions

View File

@@ -264,8 +264,13 @@ namespace PepperDash.Essentials
DeviceManager.ActivateAll(); DeviceManager.ActivateAll();
//LinkSystemMonitorToAppServer(); var mobileControl = DeviceManager.GetDeviceForKey("appServer") as IMobileControl;
}
if (mobileControl == null) return;
mobileControl.LinkSystemMonitorToAppServer();
//LinkSystemMonitorToAppServer();
}
//void LinkSystemMonitorToAppServer() //void LinkSystemMonitorToAppServer()
//{ //{

View File

@@ -1,6 +1,6 @@
using Crestron.SimplSharpPro; using Crestron.SimplSharpPro;
using Crestron.SimplSharpPro.DeviceSupport; using Crestron.SimplSharpPro.DeviceSupport;
using PepperDash.Core;
using PepperDash.Essentials.Core; using PepperDash.Essentials.Core;
using PepperDash.Essentials.Core.SmartObjects; using PepperDash.Essentials.Core.SmartObjects;
@@ -9,7 +9,7 @@ namespace PepperDash.Essentials.Core
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public interface IDPad public interface IDPad : IKeyed
{ {
void Up(bool pressRelease); void Up(bool pressRelease);
void Down(bool pressRelease); void Down(bool pressRelease);

View File

@@ -137,6 +137,7 @@
<Compile Include="Devices\PC\Laptop.cs" /> <Compile Include="Devices\PC\Laptop.cs" />
<Compile Include="Devices\ReconfigurableDevice.cs" /> <Compile Include="Devices\ReconfigurableDevice.cs" />
<Compile Include="Devices\VolumeDeviceChangeEventArgs.cs" /> <Compile Include="Devices\VolumeDeviceChangeEventArgs.cs" />
<Compile Include="DeviceTypeInterfaces\IMobileControl.cs" />
<Compile Include="Factory\DeviceFactory.cs" /> <Compile Include="Factory\DeviceFactory.cs" />
<Compile Include="Factory\IDeviceFactory.cs" /> <Compile Include="Factory\IDeviceFactory.cs" />
<Compile Include="Feedbacks\BoolFeedback.cs" /> <Compile Include="Feedbacks\BoolFeedback.cs" />