using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DS4Control { public class Log { public static event EventHandler TrayIconLog; public static event EventHandler 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)); } } } }