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.DataSource = FontFamily.Families;
|
||||||
cmbFont.DisplayMember = "Name";
|
cmbFont.DisplayMember = "Name";
|
||||||
cmbFont.SelectedIndex = -1;
|
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())
|
if (!FormatInfo.HasLatestChanges())
|
||||||
throw new Exception("Inconsistent Formats");
|
throw new Exception("Inconsistent Formats");
|
||||||
if (!ItemAuditInfo.IsChangeManagerVersion())
|
if (!ItemAuditInfo.IsChangeManagerVersion())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user