mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Merge remote-tracking branch 'origin/fix/IcdConsole' into ConnectPro_v1.2
This commit is contained in:
commit
fc855d407b
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue