private void BgWorker_DoWork1(object sender, DoWorkEventArgs e)
 {
     pw = new ProgressWindow(this);
     pw.ShowDialog();
 }
 private void ShowProgress()
 {
     pw = new ProgressWindow(this);
     pw.ShowDialog();
 }