Allow update of formats from PROMS interface

This commit is contained in:
2011-11-16 16:37:15 +00:00
parent bfd97a31bf
commit 718b4d9dc0
5 changed files with 272 additions and 245 deletions

View File

@@ -305,7 +305,7 @@ namespace DataLoader
//TextConvert.ResetSpecialCharacters();
System.Diagnostics.Process[] wordProcesses = WordDoc.WordProcesses;
MyFrmErrors.Clear();
if (wordProcesses.Length > 0)
if (cbFormatsOnly.Checked == false && wordProcesses.Length > 0)
{
AddError("{0} copies of MS Word are running", wordProcesses.Length);
if (MessageBox.Show("MS Word is Running and must be stopped before proceeding.\n\nStop MS Word?", "MS Word is Running", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
@@ -324,7 +324,7 @@ namespace DataLoader
MessageBox.Show(@"Format files are taken from c:\development\fmtall");
ldr._FmtAllPath = @"c:\development\fmtall";
ldr._GenmacAllPath = @"c:\development\genmacall";
ldr.LoadAllFormats();
Format.UpdateFormats(@"c:\development\fmtall",@"c:\development\genmacall"); //ldr.LoadAllFormats();
MessageBox.Show("Formats Loaded");
return;
}