protected void OnQueueUpdateEvent(QueueUpdateEventArgs ev) { if (QueueUpdateEvent != null) { QueueUpdateEvent(ev); } }
void imageHelper_QueueUpdateEvent(QueueUpdateEventArgs ev) { try { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new System.Windows.Forms.MethodInvoker(delegate () { tbImageDownloadQueueStatus.Text = ev.queueCount.ToString(); })); } catch (Exception ex) { Utils.ShowErrorMessage(ex); } }