Пример #1
0
 void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         if (bar.Value == 0)
         {
             bar.Animate(bar.Max);
         }
         else
         {
             bar.Animate(0);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Toggle progressbar.
 /// </summary>
 public void Toggle()
 {
     if (Progressbar.IsAnimationRun)
     {
         Progressbar.Stop();
     }
     else
     {
         if (Progressbar.Value == 0)
         {
             Progressbar.Animate(Progressbar.Max);
         }
         else
         {
             Progressbar.Animate(0);
         }
     }
 }
Пример #3
0
 /// <summary>
 /// Toggle progressbar animation.
 /// </summary>
 protected virtual void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         bar.Animate();
     }
 }
Пример #4
0
 void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         bar.Animate();
     }
 }
Пример #5
0
 void UpdateProgressbar()
 {
     Progressbar.Animate(currentItem.Progress);
 }
Пример #6
0
 void UpdateProgressbar()
 {
     Progressbar.Animate(_item.Progress);
 }