Use new generic property (ActiveDatabase) to access the current database name. About Screen
Use new generic property (ActiveDatabase) to access the current database name. Name of Export File Use new generic property (ActiveDatabase) to access the current database name. Name of Error Log FIle. Added new generic property (ActiveDatabase) to access the current database name.
This commit is contained in:
@@ -29,7 +29,7 @@ namespace VEPROMS
|
||||
Match mServer = Regex.Match(connectionString,".*Data Source=([^;]*).*");
|
||||
string server = (mServer.Success)?mServer.Groups[1].Value:"unknown";
|
||||
if (server.StartsWith(@".\")) server = @"Local \ " + server.Substring(2);
|
||||
string databaseName = Database.SelectedDatabase;
|
||||
string databaseName = Database.ActiveDatabase;
|
||||
this.Text = String.Format("About {0}", AssemblyTitle + " " + demoTxt);
|
||||
this.labelProductName.Text = AssemblyProduct;
|
||||
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
|
||||
@@ -40,7 +40,7 @@ namespace VEPROMS
|
||||
this.labelCompanyName.Links[0].LinkData = "Volian Enterprises Inc.";
|
||||
this.labelCompanyName.Links.Add(0,23,"www.volian.com");
|
||||
this.labelServer.Text = string.Format("SQL Server: {0}", server);
|
||||
if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
|
||||
//if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
|
||||
this.labelDatabase.Text = string.Format("Database: {0}", databaseName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user