Add check for import-only

This commit is contained in:
Matt Nadareski
2016-03-24 17:46:47 -07:00
parent b1df50aab9
commit 817262e113

View File

@@ -40,6 +40,14 @@ namespace DATabase
public bool Export()
{
// Check to see if the source is an import-only. If so, tell the user and exit
int id = 0;
if (_sources != "" && Int32.TryParse(_sources, out id) && id <= 14)
{
Console.WriteLine("This source is import-only so a DAT cannot be created. We apologize for the inconvenience.");
return false;
}
// Get the system name, if applicable
string systemname = "";
if (_systems != "")