Stop() public method

public Stop ( ) : void
return void
示例#1
0
 /// <summary>
 /// Toggle progressbar animation.
 /// </summary>
 protected virtual void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         bar.Animate();
     }
 }
 void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         bar.Animate();
     }
 }
示例#3
0
 void Click()
 {
     if (bar.IsAnimationRun)
     {
         bar.Stop();
     }
     else
     {
         if (bar.Value == 0)
         {
             bar.Animate(bar.Max);
         }
         else
         {
             bar.Animate(0);
         }
     }
 }
示例#4
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);
         }
     }
 }