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:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Configuration;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Volian.Base.Library
|
||||
{
|
||||
@@ -114,5 +115,45 @@ namespace Volian.Base.Library
|
||||
get { return VlnSettings._StepTypeToolTip; }
|
||||
set { VlnSettings._StepTypeToolTip = value; }
|
||||
}
|
||||
private static string _ReleaseMode = null;
|
||||
public static string ReleaseMode
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_ReleaseMode == null)
|
||||
{
|
||||
string relType = "RELEASE"; // default to normal Release Mode setting
|
||||
// Get the type of release:
|
||||
// "Demo", "Westinghouse", "Release"
|
||||
object[] attributes = Assembly.GetEntryAssembly().GetCustomAttributes(typeof(AssemblyConfigurationAttribute), false);
|
||||
if (attributes.Length > 0)
|
||||
relType = ((AssemblyConfigurationAttribute)attributes[0]).Configuration.ToUpper();
|
||||
_ReleaseMode = relType;
|
||||
}
|
||||
return _ReleaseMode;
|
||||
}
|
||||
}
|
||||
private static string _EULAfile = null;
|
||||
public static string EULAfile
|
||||
{
|
||||
get {
|
||||
if (_EULAfile == null)
|
||||
{
|
||||
switch (ReleaseMode)
|
||||
{
|
||||
case "DEMO": // Demo CD/DVD release
|
||||
_EULAfile = "DemoEULA.txt";
|
||||
break;
|
||||
case "WESTINGHOUSE":
|
||||
_EULAfile = "WestinghouseEULA.txt";
|
||||
break;
|
||||
default:
|
||||
_EULAfile = "EULA.txt";
|
||||
break;
|
||||
}
|
||||
}
|
||||
return _EULAfile;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user