mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-27 09:01:48 +01:00
31 lines
667 B
C#
31 lines
667 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace DS4Control
|
|||
|
{
|
|||
|
public class Log
|
|||
|
{
|
|||
|
public static event EventHandler<DebugEventArgs> TrayIconLog;
|
|||
|
public static event EventHandler<DebugEventArgs> GuiLog;
|
|||
|
|
|||
|
public static void LogToGui(string data)
|
|||
|
{
|
|||
|
if (GuiLog != null)
|
|||
|
{
|
|||
|
GuiLog(null, new DebugEventArgs(data));
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public static void LogToTray(string data)
|
|||
|
{
|
|||
|
if (TrayIconLog != null)
|
|||
|
{
|
|||
|
TrayIconLog(null, new DebugEventArgs(data));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|