This commit is contained in:
2011-05-19 13:21:02 +00:00
parent f74ce841a5
commit 2a300b24eb
2 changed files with 28 additions and 8 deletions

View File

@@ -318,6 +318,15 @@ namespace DataLoader
}
Database.LoggingInfo = false;
bool success = true;
if (cbFormatsOnly.Checked)
{
// ASSUMES No Formats/genmacs exist in database.
ldr._FmtAllPath = @"c:\development\fmtall";
ldr._GenmacAllPath = @"c:\development\genmacall";
ldr.LoadAllFormats();
MessageBox.Show("Formats Loaded");
return;
}
// if purge data, purge it all & reload folders & security.
if (cbPurgeData.Checked)
{
@@ -330,11 +339,6 @@ namespace DataLoader
Status = "Loading Security";
success = ldr.LoadSecurity(tbVesamPath.Text, tbVePromsPath.Text);
}
if (cbFormatsOnly.Checked)
{
MessageBox.Show("Formats Loaded");
return;
}
}
if (success)
{