mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
fix: PrintLine raises OnConoslePrint, Crestron Console Response uses PrintLine, Better environment checks
This commit is contained in:
parent
4a330637a7
commit
f85896e947
1 changed files with 5 additions and 3 deletions
|
|
@ -55,22 +55,24 @@ namespace ICD.Common.Utils
|
|||
}
|
||||
catch (NotSupportedException)
|
||||
{
|
||||
Print(message);
|
||||
PrintLine(message);
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
Print(message);
|
||||
PrintLine(message);
|
||||
}
|
||||
|
||||
public static void PrintLine(string message)
|
||||
{
|
||||
#if SIMPLSHARP
|
||||
CrestronConsole.PrintLine(message);
|
||||
if (IcdEnvironment.RuntimeEnvironment != IcdEnvironment.eRuntimeEnvironment.SimplSharpProMono)
|
||||
CrestronConsole.PrintLine(message);
|
||||
#else
|
||||
Console.WriteLine(message);
|
||||
#endif
|
||||
OnConsolePrint.Raise(null, new StringEventArgs(message + IcdEnvironment.NewLine));
|
||||
}
|
||||
|
||||
public static void PrintLine(string message, params object[] args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue