Esempio n. 1
0
 /// <summary>
 /// 停止进度条滚动
 /// </summary>
 public static void StopProcessBar()
 {
     if (StatusBarObject != null)
     {
         StatusBarObject.Progress(ref processBarCookie, 0, "", 0, 0);
         processBarCookie = 0;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 显示进度条
 /// </summary>
 /// <param name="leftCornerText">左下角需要显示的文字</param>
 /// <param name="value">进度条的当前值,不超过最大值</param>
 public static void ShowProcessBar(string leftCornerText, uint value)
 {
     if (StatusBarObject != null)
     {
         lastValue = value;
         if (value <= MaxValue)
         {
             StatusBarObject.Progress(ref processBarCookie, 1, leftCornerText, value, MaxValue);
         }
         else
         {
             StatusBarObject.Progress(ref processBarCookie, 0, "", 0, 0);
         }
     }
 }
Esempio n. 3
0
 public static void CancelProcessBar()
 {
     StatusBarObject.Progress(ref processBarCookie, 0, "", 0, 0);
 }