mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 02:54:20 +01:00
df43fd0d74
I kinda just felt like doing it :P wanted to test myself, trying to make a cleaner UI
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));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|