using System; public static class UIEvents { // Demande de refresh (traduction + couleurs + boutons) public static event Action RefreshRequested; // Optionnel: debug "qui a déclenché" public static event Action RefreshRequestedBy; public static void RequestRefresh(string reason = null) { RefreshRequested?.Invoke(); if (!string.IsNullOrEmpty(reason)) RefreshRequestedBy?.Invoke(reason); } }