mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
fix: PrintLine raises OnConoslePrint, Crestron Console Response uses PrintLine, Better environment checks
This commit is contained in:
@@ -55,22 +55,24 @@ namespace ICD.Common.Utils
|
|||||||
}
|
}
|
||||||
catch (NotSupportedException)
|
catch (NotSupportedException)
|
||||||
{
|
{
|
||||||
Print(message);
|
PrintLine(message);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Print(message);
|
PrintLine(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void PrintLine(string message)
|
public static void PrintLine(string message)
|
||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
CrestronConsole.PrintLine(message);
|
if (IcdEnvironment.RuntimeEnvironment != IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono)
|
||||||
|
CrestronConsole.PrintLine(message);
|
||||||
#else
|
#else
|
||||||
Console.WriteLine(message);
|
Console.WriteLine(message);
|
||||||
#endif
|
#endif
|
||||||
|
OnConsolePrint.Raise(null, new StringEventArgs(message + IcdEnvironment.NewLine));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void PrintLine(string message, params object[] args)
|
public static void PrintLine(string message, params object[] args)
|
||||||
|
|||||||
Reference in New Issue
Block a user