Beispiel #1
0
 private void Timer_Tick(object sender, EventArgs e)
 {
     if (tr != null && !downloading)
     {
         int newInt = (int)tr.GetCurrentOperationProgress();
         if (newInt != nsProgressBar.Value)
         {
             if (newInt == 0)
             {
                 this.StatusLabel.Text = "Done";
             }
             nsProgressBar.Value = newInt;
             nsProgressBar.Refresh();
         }
     }
 }