private void ResourceDownloaderForm_DownloadingResources(object sender, Resources.EventHandlers.DownloadingResourcesEventArgs e) { Instance.Invoke(new Action(() => { progressBar.Value = 0; infoTextBox.Text = e.Message; })); }
//Event Broadcasts private void BroadcastDownloadingResourcesEvent(string message) { Resources.EventHandlers.DownloadingResourcesEventArgs e = new Resources.EventHandlers.DownloadingResourcesEventArgs(); e.Message = message; OnDownloadingResources(this, e); }
private void OnDownloadingResources(object sender, Resources.EventHandlers.DownloadingResourcesEventArgs e) { DownloadingResources?.Invoke(this, e); }