/// <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);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// The method that updates the label.
 /// </summary>
 /// <param name="e"></param>
 private void _LabelUpdate(EasyMYPUpdateLabelsEvent e)
 {
     e.Label.Text = e.Text;
 }
Exemplo n.º 3
0
 /// <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;
 }