mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-18 06:05:00 +00:00
fix: Fixed IcdEnvironment.Framework for .net framework
This commit is contained in:
@@ -109,8 +109,8 @@ namespace ICD.Common.Utils
|
|||||||
|
|
||||||
static IcdEnvironment()
|
static IcdEnvironment()
|
||||||
{
|
{
|
||||||
s_Framework = eFramework.Standard;
|
|
||||||
#if NETFRAMEWORK
|
#if NETFRAMEWORK
|
||||||
|
s_Framework = eFramework.Framework;
|
||||||
s_CrestronSeries = eCrestronSeries.FourSeries;
|
s_CrestronSeries = eCrestronSeries.FourSeries;
|
||||||
if (CrestronEnvironment.RuntimeEnvironment == eRuntimeEnvironment.SIMPL)
|
if (CrestronEnvironment.RuntimeEnvironment == eRuntimeEnvironment.SIMPL)
|
||||||
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Simpl;
|
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Simpl;
|
||||||
@@ -119,6 +119,7 @@ namespace ICD.Common.Utils
|
|||||||
else
|
else
|
||||||
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Server;
|
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Server;
|
||||||
#else
|
#else
|
||||||
|
s_Framework = eFramework.Standard;
|
||||||
s_CrestronSeries = eCrestronSeries.Na;
|
s_CrestronSeries = eCrestronSeries.Na;
|
||||||
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Na;
|
s_CrestronRuntimeEnvironment = eCrestronRuntimeEnvironment.Na;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ namespace ICD.Common.Utils
|
|||||||
public enum eFramework
|
public enum eFramework
|
||||||
{
|
{
|
||||||
Crestron,
|
Crestron,
|
||||||
|
Framework,
|
||||||
Standard
|
Standard
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (IcdEnvironment.Framework == IcdEnvironment.eFramework.Crestron)
|
if (IcdEnvironment.Framework != IcdEnvironment.eFramework.Standard)
|
||||||
{
|
{
|
||||||
// 3-series
|
// 3-series
|
||||||
if (IcdEnvironment.CrestronSeries == IcdEnvironment.eCrestronSeries.ThreeSeries)
|
if (IcdEnvironment.CrestronSeries == IcdEnvironment.eCrestronSeries.ThreeSeries)
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ namespace ICD.Common.Utils
|
|||||||
throw new ArgumentOutOfRangeException();
|
throw new ArgumentOutOfRangeException();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case IcdEnvironment.eFramework.Framework:
|
||||||
case IcdEnvironment.eFramework.Standard:
|
case IcdEnvironment.eFramework.Standard:
|
||||||
name += ' ';
|
name += ' ';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user