public void BroadcastDownloadedEmoticonEvent(string message, Emoticons.Enumerations.EmoticonSource emoticonSource, string channelName) { Emoticons.EventHandlers.DownloadedEmoticonEventArgs e = new Emoticons.EventHandlers.DownloadedEmoticonEventArgs(); e.Message = message; e.EmoticonSource = emoticonSource; e.ChannelName = channelName; OnDownloadedEmoticon(this, e); }
protected virtual void OnDownloadedEmoticon(object sender, Emoticons.EventHandlers.DownloadedEmoticonEventArgs e) { DownloadedEmoticon?.Invoke(this, e); }