cemu-DS4Windows/DS4Windows/DS4Control/Log.cs
Travis Nickles 3f68c9bcb8 Removed usage of some unused namespaces
The only real import one is remove System.Windows.Forms
for non GUI items
2017-04-30 06:42:09 -07:00

31 lines
823 B
C#

using System;
namespace DS4Windows
{
public class Log
{
public static event EventHandler<DebugEventArgs> TrayIconLog;
public static event EventHandler<DebugEventArgs> GuiLog;
public static void LogToGui(string data, bool warning)
{
if (GuiLog != null)
{
GuiLog(null, new DebugEventArgs(data, warning));
}
}
public static void LogToTray(string data, bool warning = false, bool ignoreSettings = false)
{
if (TrayIconLog != null)
{
if (ignoreSettings)
TrayIconLog(ignoreSettings, new DebugEventArgs(data, warning));
else
TrayIconLog(null, new DebugEventArgs(data, warning));
}
}
}
}