Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="frame"></param>
 /// <param name="total"></param>
 public static void Waiting(IProgressFrame frame, int total)
 {
     using (MFProgress wait = new MFProgress(total))
     {
         wait.DoWait(frame);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 进度条等待方法执行完成
 /// 同步执行
 /// </summary>
 /// <param name="methods"></param>
 public static void Waiting(Action[] methods)
 {
     using (MFProgress frmw = new MFProgress())
     {
         frmw.DoWait(methods);
     }
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="handle"></param>
 /// <param name="frameProgress"></param>
 public static void Waiting(IWin32Window handle, IProgressFrame frameProgress)
 {
     using (MFProgress wait = new MFProgress())
     {
         wait.DoWait(handle, frameProgress);
     }
 }
Beispiel #4
0
 /// <summary>
 /// 进度条窗体测试
 /// </summary>
 /// <param name="num"></param>
 public static void Waiting(int num)
 {
     if (num == 0)
     {
         return;
     }
     using (MFProgress frmw = new MFProgress())
     {
         frmw.DoWait(num);
     }
 }