mirror of
https://github.com/aaru-dps/Aaru.Console.git
synced 2025-12-16 19:24:32 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -33,13 +33,19 @@
|
|||||||
namespace DiscImageChef.Console
|
namespace DiscImageChef.Console
|
||||||
{
|
{
|
||||||
public delegate void WriteLineHandler(string format, params object[] arg);
|
public delegate void WriteLineHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void ErrorWriteLineHandler(string format, params object[] arg);
|
public delegate void ErrorWriteLineHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void VerboseWriteLineHandler(string format, params object[] arg);
|
public delegate void VerboseWriteLineHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void DebugWriteLineHandler(string format, params object[] arg);
|
public delegate void DebugWriteLineHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void WriteHandler(string format, params object[] arg);
|
public delegate void WriteHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void ErrorWriteHandler(string format, params object[] arg);
|
public delegate void ErrorWriteHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void VerboseWriteHandler(string format, params object[] arg);
|
public delegate void VerboseWriteHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public delegate void DebugWriteHandler(string format, params object[] arg);
|
public delegate void DebugWriteHandler(string format, params object[] arg);
|
||||||
|
|
||||||
public static class DicConsole
|
public static class DicConsole
|
||||||
@@ -56,124 +62,102 @@ namespace DiscImageChef.Console
|
|||||||
|
|
||||||
public static void WriteLine(string format, params object[] arg)
|
public static void WriteLine(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(WriteLineEvent != null)
|
if(WriteLineEvent != null) WriteLineEvent(format, arg);
|
||||||
WriteLineEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ErrorWriteLine(string format, params object[] arg)
|
public static void ErrorWriteLine(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(ErrorWriteLineEvent != null)
|
if(ErrorWriteLineEvent != null) ErrorWriteLineEvent(format, arg);
|
||||||
ErrorWriteLineEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void VerboseWriteLine(string format, params object[] arg)
|
public static void VerboseWriteLine(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(VerboseWriteLineEvent != null)
|
if(VerboseWriteLineEvent != null) VerboseWriteLineEvent(format, arg);
|
||||||
VerboseWriteLineEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DebugWriteLine(string module, string format, params object[] arg)
|
public static void DebugWriteLine(string module, string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(DebugWriteLineEvent != null)
|
if(DebugWriteLineEvent != null) DebugWriteLineEvent("DEBUG (" + module + "): " + format, arg);
|
||||||
DebugWriteLineEvent("DEBUG (" + module + "): " + format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void WriteLine()
|
public static void WriteLine()
|
||||||
{
|
{
|
||||||
if(WriteLineEvent != null)
|
if(WriteLineEvent != null) WriteLineEvent("", null);
|
||||||
WriteLineEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ErrorWriteLine()
|
public static void ErrorWriteLine()
|
||||||
{
|
{
|
||||||
if(ErrorWriteLineEvent != null)
|
if(ErrorWriteLineEvent != null) ErrorWriteLineEvent("", null);
|
||||||
ErrorWriteLineEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void VerboseWriteLine()
|
public static void VerboseWriteLine()
|
||||||
{
|
{
|
||||||
if(VerboseWriteLineEvent != null)
|
if(VerboseWriteLineEvent != null) VerboseWriteLineEvent("", null);
|
||||||
VerboseWriteLineEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DebugWriteLine()
|
public static void DebugWriteLine()
|
||||||
{
|
{
|
||||||
if(DebugWriteLineEvent != null)
|
if(DebugWriteLineEvent != null) DebugWriteLineEvent("", null);
|
||||||
DebugWriteLineEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Write(string format, params object[] arg)
|
public static void Write(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(WriteEvent != null)
|
if(WriteEvent != null) WriteEvent(format, arg);
|
||||||
WriteEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ErrorWrite(string format, params object[] arg)
|
public static void ErrorWrite(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(ErrorWriteEvent != null)
|
if(ErrorWriteEvent != null) ErrorWriteEvent(format, arg);
|
||||||
ErrorWriteEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void VerboseWrite(string format, params object[] arg)
|
public static void VerboseWrite(string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(VerboseWriteEvent != null)
|
if(VerboseWriteEvent != null) VerboseWriteEvent(format, arg);
|
||||||
VerboseWriteEvent(format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DebugWrite(string module, string format, params object[] arg)
|
public static void DebugWrite(string module, string format, params object[] arg)
|
||||||
{
|
{
|
||||||
if(DebugWriteEvent != null)
|
if(DebugWriteEvent != null) DebugWriteEvent("DEBUG (" + module + "): " + format, arg);
|
||||||
DebugWriteEvent("DEBUG (" + module + "): " + format, arg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Write()
|
public static void Write()
|
||||||
{
|
{
|
||||||
if(WriteEvent != null)
|
if(WriteEvent != null) WriteEvent("", null);
|
||||||
WriteEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ErrorWrite()
|
public static void ErrorWrite()
|
||||||
{
|
{
|
||||||
if(ErrorWriteEvent != null)
|
if(ErrorWriteEvent != null) ErrorWriteEvent("", null);
|
||||||
ErrorWriteEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void VerboseWrite()
|
public static void VerboseWrite()
|
||||||
{
|
{
|
||||||
if(VerboseWriteEvent != null)
|
if(VerboseWriteEvent != null) VerboseWriteEvent("", null);
|
||||||
VerboseWriteEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DebugWrite()
|
public static void DebugWrite()
|
||||||
{
|
{
|
||||||
if(DebugWriteEvent != null)
|
if(DebugWriteEvent != null) DebugWriteEvent("", null);
|
||||||
DebugWriteEvent("", null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void WriteLine(string format)
|
public static void WriteLine(string format)
|
||||||
{
|
{
|
||||||
if(WriteLineEvent != null)
|
if(WriteLineEvent != null) WriteLineEvent("{0}", format);
|
||||||
WriteLineEvent("{0}", format);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ErrorWriteLine(string format)
|
public static void ErrorWriteLine(string format)
|
||||||
{
|
{
|
||||||
if(ErrorWriteLineEvent != null)
|
if(ErrorWriteLineEvent != null) ErrorWriteLineEvent("{0}", format);
|
||||||
ErrorWriteLineEvent("{0}", format);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void VerboseWriteLine(string format)
|
public static void VerboseWriteLine(string format)
|
||||||
{
|
{
|
||||||
if(VerboseWriteLineEvent != null)
|
if(VerboseWriteLineEvent != null) VerboseWriteLineEvent("{0}", format);
|
||||||
VerboseWriteLineEvent("{0}", format);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DebugWriteLine(string module, string format)
|
public static void DebugWriteLine(string module, string format)
|
||||||
{
|
{
|
||||||
if(DebugWriteLineEvent != null)
|
if(DebugWriteLineEvent != null) DebugWriteLineEvent("{0}", "DEBUG (" + module + "): " + format);
|
||||||
DebugWriteLineEvent("{0}", "DEBUG (" + module + "): " + format);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,5 +54,4 @@ using System.Reflection;
|
|||||||
// if desired. See the Mono documentation for more information about signing.
|
// if desired. See the Mono documentation for more information about signing.
|
||||||
|
|
||||||
//[assembly: AssemblyDelaySign(false)]
|
//[assembly: AssemblyDelaySign(false)]
|
||||||
//[assembly: AssemblyKeyFile("")]
|
//[assembly: AssemblyKeyFile("")]
|
||||||
|
|
||||||
Reference in New Issue
Block a user