private void closeProgressWin() { // set the closing event should not be cancelled. //nFinished = finish; progressWin.StateFlag = 2; progressWin.Close(); progressWin = null; }
private void showProgressDialog(int nTotal) { progressWin = new ProgressWin(nTotal); progressWin.Owner = this; progressWin.ShowDialog(); //importPicsThread.Abort(); MessageBox.Show(String.Format("成功导入{0}张图片", nFinished), "祝贺您"); }