public static void Show(string text, InfoTypes type) { Application.Current?.Dispatcher?.Invoke(() => { InformationAdded?.Invoke(new InformationModel(type, DateTime.Now, text)); }); }
public static void Show(string text, InfoTypes type) { InformationAdded?.Invoke(new InformationModel(type, DateTime.Now, text)); }