From d20c31ef714ad15c75155a9af817f7d8cb224420 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Thu, 14 Aug 2014 16:06:43 +0200 Subject: [PATCH] Add additional logging functionality --- Vocaluxe/Base/CMain.cs | 4 ++-- VocaluxeLib/IBasic.cs | 2 +- VocaluxeLib/Menu/CStatic.cs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Vocaluxe/Base/CMain.cs b/Vocaluxe/Base/CMain.cs index c52a77a3..5856bab5 100644 --- a/Vocaluxe/Base/CMain.cs +++ b/Vocaluxe/Base/CMain.cs @@ -434,9 +434,9 @@ namespace Vocaluxe.Base class CBlog : ILog { - public void LogError(string errorText) + public void LogError(string errorText, bool showMsg = false, bool exit = false) { - CLog.LogError(errorText); + CLog.LogError(errorText, showMsg, exit); } public void LogDebug(string text) diff --git a/VocaluxeLib/IBasic.cs b/VocaluxeLib/IBasic.cs index 404e55a2..ef14e905 100644 --- a/VocaluxeLib/IBasic.cs +++ b/VocaluxeLib/IBasic.cs @@ -152,7 +152,7 @@ namespace VocaluxeLib public interface ILog { - void LogError(string errorText); + void LogError(string errorText, bool showMsg = false, bool exit = false); void LogDebug(string text); void LogSongInfo(string text); } diff --git a/VocaluxeLib/Menu/CStatic.cs b/VocaluxeLib/Menu/CStatic.cs index 327dfc14..6d4c2e35 100644 --- a/VocaluxeLib/Menu/CStatic.cs +++ b/VocaluxeLib/Menu/CStatic.cs @@ -16,7 +16,6 @@ #endregion using System; -using System.Drawing; using System.Xml; using VocaluxeLib.Draw;