Search Results Report

Changed Word conversion to use one instance of a Word Application unless an error occurs.
Changed two timers to Static
This commit is contained in:
Rich
2010-09-06 19:30:54 +00:00
parent 7a957dfc35
commit 773b7c266b
4 changed files with 508 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ namespace DataLoader
Security sec = new Security(VeSamPath, VePromsPath);
return sec.Migrate();
}
private void WaitMS(int n)
private static void WaitMS(int n)
{
DateTime dtw = DateTime.Now.AddMilliseconds(n);
while (DateTime.Now < dtw)
@@ -216,7 +216,7 @@ namespace DataLoader
Application.DoEvents();
}
}
private void Wait(int n)
private static void Wait(int n)
{
DateTime dtw = DateTime.Now.AddSeconds(n);
while (DateTime.Now < dtw)

View File

@@ -459,6 +459,7 @@ namespace DataLoader
if (Properties.Settings.Default["BackupFileName"].ToString() != "")
this.tbxBackupFileName.Text = Properties.Settings.Default.BackupFileName;
_Loading = false;
MSWordToPDF.CloseWordWhenDone = false;
}
private void frmLoader_FormClosing(object sender, FormClosingEventArgs e)