void closeProgDialog()
 {
     if (dlgPrgrs != null)
     {
         dlgPrgrs.Close();
         dlgPrgrs.Dispose();
         dlgPrgrs = null;
     }
     else
     {
         GUIWaitCursor.Hide();
     }
 }