Added ability to select database from the command-line.
This commit is contained in:
parent
b5ba7348cd
commit
8c6c81b951
@ -160,6 +160,12 @@ namespace VEPROMS
|
||||
cmbFont.DataSource = FontFamily.Families;
|
||||
cmbFont.DisplayMember = "Name";
|
||||
cmbFont.SelectedIndex = -1;
|
||||
string[] parameters = System.Environment.CommandLine.Split(" ".ToCharArray());
|
||||
foreach (string parameter in parameters)
|
||||
{
|
||||
if (parameter.StartsWith("/DB="))
|
||||
Database.SelectedDatabase = parameter.Substring(4);
|
||||
}
|
||||
if (!FormatInfo.HasLatestChanges())
|
||||
throw new Exception("Inconsistent Formats");
|
||||
if (!ItemAuditInfo.IsChangeManagerVersion())
|
||||
|
Loading…
x
Reference in New Issue
Block a user