Added a Version Indicator (Debug), (Demo), (Production) the the about dialog.

This commit is contained in:
Rich 2014-09-02 18:29:43 +00:00
parent 0808404bea
commit f5a9e032a2

View File

@ -24,7 +24,7 @@ namespace VEPROMS
//"Data Source=.\\SQLEXPRESS;Initial Catalog=VEPROMS_RGE_SAMG_Convert;Integrated Security=True"
DateTime buildDateTime = new System.IO.FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime;
// If the AssemblyConfiguration is "DEMO" then we are running a Demo version
string demoTxt = VlnSettings.ReleaseMode.Equals("DEMO")?"(Demo)": "";
string demoTxt = VlnSettings.DemoMode ? "(Demo)": VlnSettings.DebugMode ? "(Debug)" : "(Production)";
string connectionString = Database.VEPROMS_Connection;
Match mServer = Regex.Match(connectionString,".*Data Source=([^;]*).*");
string server = (mServer.Success)?mServer.Groups[1].Value:"unknown";