示例#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);
     }
 }
示例#2
0
 /// <summary>
 /// 进度条等待方法执行完成
 /// 同步执行
 /// </summary>
 /// <param name="methods"></param>
 public static void Waiting(Action[] methods)
 {
     using (MFProgress frmw = new MFProgress())
     {
         frmw.DoWait(methods);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }