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

@@ -740,6 +740,11 @@ namespace Volian.Controls.Library
private void lbROId_DoubleClick(object sender, EventArgs e)
{
if (tvROFST.SelectedNode == null) return;
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");
Object obj = tvROFST.SelectedNode.Tag;
if (obj is ROFSTLookup.rochild)
@@ -769,6 +774,11 @@ namespace Volian.Controls.Library
private void RunRoEditor()
{
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");
Object obj = tvROFST.SelectedNode.Tag;
if (obj is ROFSTLookup.rochild)