private void BroadcastNewProgressDownloadingFileEvent(string message, int progress) { Fetching.EventHandlers.NewProgressDownloadingFileEventArgs e = new Fetching.EventHandlers.NewProgressDownloadingFileEventArgs(); e.Message = message; e.Progress = progress; OnNewProgressDownloadingFile(this, e); }
protected virtual void OnNewProgressDownloadingFile(object sender, Fetching.EventHandlers.NewProgressDownloadingFileEventArgs e) { NewProgressDownloadingFile?.Invoke(this, e); }