mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Tidying
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
#if SIMPLSHARP
|
||||||
|
using Crestron.SimplSharp;
|
||||||
|
#endif
|
||||||
using ICD.Common.Properties;
|
using ICD.Common.Properties;
|
||||||
|
|
||||||
namespace ICD.Common.Utils
|
namespace ICD.Common.Utils
|
||||||
@@ -34,7 +37,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_RED);
|
message = FormatConsoleColor(message, CONSOLE_RED);
|
||||||
Crestron.SimplSharp.ErrorLog.Error(message);
|
ErrorLog.Error(message);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Red;
|
System.Console.ForegroundColor = ConsoleColor.Red;
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.Error.WriteLine(message);
|
||||||
@@ -62,7 +65,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_YELLOW);
|
message = FormatConsoleColor(message, CONSOLE_YELLOW);
|
||||||
Crestron.SimplSharp.ErrorLog.Warn(message);
|
ErrorLog.Warn(message);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.Error.WriteLine(message);
|
||||||
@@ -90,7 +93,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_BLUE);
|
message = FormatConsoleColor(message, CONSOLE_BLUE);
|
||||||
Crestron.SimplSharp.ErrorLog.Notice(message);
|
ErrorLog.Notice(message);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Blue;
|
System.Console.ForegroundColor = ConsoleColor.Blue;
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.Error.WriteLine(message);
|
||||||
@@ -118,7 +121,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_GREEN);
|
message = FormatConsoleColor(message, CONSOLE_GREEN);
|
||||||
Crestron.SimplSharp.ErrorLog.Ok(message);
|
ErrorLog.Ok(message);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Green;
|
System.Console.ForegroundColor = ConsoleColor.Green;
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.Error.WriteLine(message);
|
||||||
@@ -146,7 +149,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_YELLOW_ON_RED_BACKGROUND);
|
message = FormatConsoleColor(message, CONSOLE_YELLOW_ON_RED_BACKGROUND);
|
||||||
Crestron.SimplSharp.ErrorLog.Exception(message, ex);
|
ErrorLog.Exception(message, ex);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
System.Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
System.Console.BackgroundColor = ConsoleColor.Red;
|
System.Console.BackgroundColor = ConsoleColor.Red;
|
||||||
@@ -177,7 +180,7 @@ namespace ICD.Common.Utils
|
|||||||
{
|
{
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
message = FormatConsoleColor(message, CONSOLE_CYAN);
|
message = FormatConsoleColor(message, CONSOLE_CYAN);
|
||||||
Crestron.SimplSharp.ErrorLog.Info(message);
|
ErrorLog.Info(message);
|
||||||
#else
|
#else
|
||||||
System.Console.ForegroundColor = ConsoleColor.Cyan;
|
System.Console.ForegroundColor = ConsoleColor.Cyan;
|
||||||
System.Console.Error.WriteLine(message);
|
System.Console.Error.WriteLine(message);
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace ICD.Common.Utils.Xml
|
|||||||
public IcdXmlTextWriter(XmlTextWriter writer)
|
public IcdXmlTextWriter(XmlTextWriter writer)
|
||||||
{
|
{
|
||||||
m_Writer = writer;
|
m_Writer = writer;
|
||||||
m_Writer.Formatting = Crestron.SimplSharp.CrestronXml.Formatting.Indented;
|
m_Writer.Formatting = Formatting.Indented;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|||||||
Reference in New Issue
Block a user