This commit is contained in:
2010-08-12 16:05:52 +00:00
parent f91459b9f0
commit 0849b002b4
18 changed files with 231 additions and 212 deletions

View File

@@ -17,6 +17,7 @@ using DevComponents.DotNetBar.Rendering;
using VEPROMS.Properties;
using Volian.Controls.Library;
using DescriptiveEnum;
using Volian.Base.Library;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
@@ -88,7 +89,7 @@ namespace VEPROMS
#endregion
public frmVEPROMS()
{
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
{
//use local data (for development/debug mode)
if (Environment.MachineName == "RMARK-PC")
@@ -113,7 +114,7 @@ namespace VEPROMS
// When creating an XY Plot, a System.Drawing.Graphics is needed and it requires a form. Use the main
// form.
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
MSWordToPDF.OverrideColor = Color.Red;
MSWordToPDF.FormForPlotGraphics = this;
@@ -184,7 +185,7 @@ namespace VEPROMS
private void frmVEPROMS_Load(object sender, EventArgs e)
{
string debugMode = ConfigurationManager.AppSettings["Debug"];
vlnStackTrace.DebugMode = bool.Parse(debugMode); // set debug for the Volian.Controls.Library
VlnSettings.DebugMode = bool.Parse(debugMode); // set debug for the Volian.Controls.Library
// get the saved location and size of the VE-PROMS appication for this user
if (Settings.Default["Location"] != null) this.Location = Settings.Default.Location;
if (Settings.Default["Size"] != null) this.Size = Settings.Default.Size;
@@ -204,7 +205,7 @@ namespace VEPROMS
}
private void SetupButtons()
{
if (!vlnStackTrace.DebugMode)
if (!VlnSettings.DebugMode)
{
lblItemID.Visible = false;
btnItemInfo.Visible = false;
@@ -559,7 +560,7 @@ namespace VEPROMS
/// <param name="args"></param>
void tn_LoadingChildernDone(object sender, VETreeNodeEventArgs args)
{
if (vlnStackTrace.DebugMode)
if (VlnSettings.DebugMode)
ProgBarText = args.Info + " Seconds";
else
ProgBarText = "";