if running a Demo (demo CD/DVD) version, version is set to Demo and it will display the demo EULA

Will force a “SAMPLE” watermark when running a Demo version (demo CD/DVD)
if running a Demo (demo CD/DVD) display the demo EULA the first time PROMS is run
gets for ReleaseMode and EULA file names
Disable RO Editor when running a Demo version
This commit is contained in:
2012-06-14 14:21:57 +00:00
parent 46b11369e6
commit 2be97c8cfd
6 changed files with 75 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ using System.IO;
using System.Text.RegularExpressions;
using VEPROMS.CSLA.Library;
using Accentra.Controls;
using Volian.Base.Library;
namespace Volian.Controls.Library
{
@@ -1240,6 +1241,11 @@ namespace Volian.Controls.Library
}
else
{
if (VlnSettings.ReleaseMode.Equals("DEMO"))
{
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
return;
}
string myROID;
RODbInfo myRODB;
if (MyFlexGrid != null && MyFlexGrid.IsRoTable)
@@ -1326,6 +1332,11 @@ namespace Volian.Controls.Library
private void btnROEdit_Click(object sender, EventArgs e)
{
if (VlnSettings.ReleaseMode.Equals("DEMO"))
{
MessageBox.Show("Referenced Object Editor not available in the Demo version.", "PROMS Demo Version");
return;
}
string roapp = Environment.GetEnvironmentVariable("roapp");
if (roapp == null)
{