/// <summary> /// Updates the text of a specific label /// Call this method from an alternate thread. /// </summary> /// <param name="e"></param> private void LabelTextUpdate(EasyMYPUpdateLabelsEvent e) { if (e.Label.InvokeRequired) { Invoke(OnLabelUpdate, e); } else { _LabelUpdate(e); } }
/// <summary> /// The method that updates the label. /// </summary> /// <param name="e"></param> private void _LabelUpdate(EasyMYPUpdateLabelsEvent e) { e.Label.Text = e.Text; }