/// <summary>
 /// Updates the text of a specific label
 /// Call this method from an alternate thread.
 /// </summary>
 /// <param name="e"></param>
 private void ProgressBarVisibilityUpdate(EasyMYPProgressBarVisibilityEvent e)
 {
     if (e.ProgressBar.InvokeRequired)
     {
         Invoke(OnProgressBarVisibilityUpdate, e);
     }
     else
     {
         _ProgressBarVisibilityUpdate(e);
     }
 }
Пример #2
0
 private void _ProgressBarVisibilityUpdate(EasyMYPProgressBarVisibilityEvent e)
 {
     e.ProgressBar.Visible = e.Visible;
     e.ProgressBar.Maximum = e.Max;
     e.ProgressBar.Value = e.Value;
 }
Пример #3
0
 /// <summary>
 /// Updates the text of a specific label
 /// Call this method from an alternate thread.
 /// </summary>
 /// <param name="e"></param>
 private void ProgressBarVisibilityUpdate(EasyMYPProgressBarVisibilityEvent e)
 {
     if (e.ProgressBar.InvokeRequired)
     {
         Invoke(OnProgressBarVisibilityUpdate, e);
     }
     else
     {
         _ProgressBarVisibilityUpdate(e);
     }
 }
 private void _ProgressBarVisibilityUpdate(EasyMYPProgressBarVisibilityEvent e)
 {
     e.ProgressBar.Visible = e.Visible;
     e.ProgressBar.Maximum = e.Max;
     e.ProgressBar.Value   = e.Value;
 }