Exemple #1
0
 /// <summary>
 /// 无参数并且无返回值
 /// </summary>
 /// <param name="method"></param>
 public void NonParmAndNonReturnMethod(DelegateNonParmAndNonReturn method)
 {
     nonParmAndNonReturn = method;
     formloading         = new FrmLoading();
     formloading.backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorkerLoad_NonParmAndNonReturn);
     SetDisplayText(Desc);
     formloading.ShowDialog();
     formloading.Close();
 }
Exemple #2
0
 /// <summary>
 /// 有参数并且无返回值
 /// </summary>
 /// <param name="method"></param>
 /// <param name="para"></param>
 public void HasParmAndNonReturnMethod(DelegateHasParmAndNonReturn method, object para = null)
 {
     parmLoading         = para;
     hasParmAndNonReturn = method;
     formloading         = new FrmLoading();
     formloading.backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorkerLoad_HasParmAndNonReturn);
     SetDisplayText(Desc);
     formloading.ShowDialog();
     formloading.Close();
 }