/// <summary> /// Handles a change to the publish status for the subscription. /// </summary> void Subscription_PublishStatusChanged(object subscription, EventArgs e) { if (InvokeRequired) { BeginInvoke(m_PublishStatusChanged, subscription, e); return; } else if (!IsHandleCreated) { return; } try { // ignore notifications for other subscriptions. if (!Object.ReferenceEquals(m_subscription, subscription)) { return; } // notify controls of the change. DataChangesCTRL.PublishStatusChanged(); } catch (Exception exception) { GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception); } }