mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
Updates to LutronQuantum.cs
This commit is contained in:
parent
afa1cff0e0
commit
6d913e8a72
5 changed files with 485 additions and 284 deletions
|
|
@ -1,18 +1,18 @@
|
|||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharp.CrestronDataStore;
|
||||
using Crestron.SimplSharpPro;
|
||||
|
||||
//using PepperDash.Essentials.Core.Http;
|
||||
using PepperDash.Essentials.License;
|
||||
|
||||
|
||||
|
||||
namespace PepperDash.Essentials.Core
|
||||
{
|
||||
public static class Global
|
||||
{
|
||||
public static CrestronControlSystem ControlSystem { get; set; }
|
||||
|
||||
using Crestron.SimplSharp;
|
||||
using Crestron.SimplSharp.CrestronDataStore;
|
||||
using Crestron.SimplSharpPro;
|
||||
|
||||
//using PepperDash.Essentials.Core.Http;
|
||||
using PepperDash.Essentials.License;
|
||||
|
||||
|
||||
|
||||
namespace PepperDash.Essentials.Core
|
||||
{
|
||||
public static class Global
|
||||
{
|
||||
public static CrestronControlSystem ControlSystem { get; set; }
|
||||
|
||||
public static LicenseManager LicenseManager { get; set; }
|
||||
|
||||
public static string FilePathPrefix { get; private set; }
|
||||
|
|
@ -32,18 +32,18 @@ namespace PepperDash.Essentials.Core
|
|||
public static void SetFilePathPrefix(string prefix)
|
||||
{
|
||||
FilePathPrefix = prefix;
|
||||
}
|
||||
|
||||
static Global()
|
||||
{
|
||||
// Fire up CrestronDataStoreStatic
|
||||
var err = CrestronDataStoreStatic.InitCrestronDataStore();
|
||||
if (err != CrestronDataStore.CDS_ERROR.CDS_SUCCESS)
|
||||
{
|
||||
CrestronConsole.PrintLine("Error starting CrestronDataStoreStatic: {0}", err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static Global()
|
||||
{
|
||||
// Fire up CrestronDataStoreStatic
|
||||
var err = CrestronDataStoreStatic.InitCrestronDataStore();
|
||||
if (err != CrestronDataStore.CDS_ERROR.CDS_SUCCESS)
|
||||
{
|
||||
CrestronConsole.PrintLine("Error starting CrestronDataStoreStatic: {0}", err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -11,10 +11,9 @@ namespace PepperDash.Essentials.Core.Lighting
|
|||
{
|
||||
public abstract class LightingBase : Device, ILightingScenes
|
||||
{
|
||||
|
||||
#region ILightingScenes Members
|
||||
|
||||
event EventHandler<LightingSceneChangeEventArgs> ILightingScenes.LightingSceneChange
|
||||
public event EventHandler<LightingSceneChangeEventArgs> LightingSceneChange
|
||||
{
|
||||
add { throw new NotImplementedException(); }
|
||||
remove { throw new NotImplementedException(); }
|
||||
|
|
@ -27,8 +26,8 @@ namespace PepperDash.Essentials.Core.Lighting
|
|||
#endregion
|
||||
|
||||
|
||||
public LightingBase(string key, string name) :
|
||||
base(key, name)
|
||||
public LightingBase(string key, string name)
|
||||
: base(key, name)
|
||||
{
|
||||
LightingScenes = new List<LightingScene>();
|
||||
}
|
||||
|
|
@ -41,5 +40,6 @@ namespace PepperDash.Essentials.Core.Lighting
|
|||
public class LightingScene
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public object ID { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue