Volian.Base.Library & Baseline
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Configuration;
|
||||
using System.Reflection;
|
||||
@@ -17,25 +15,11 @@ namespace Volian.Base.Library
|
||||
// <add key ="OperatingMode" value ="Debug"|"Demo"|"Production"/>
|
||||
// For DataLoader, this is set via the Debug checkbox on the form.
|
||||
private static bool WasLoaded = false;
|
||||
private static bool _DoUpdateRO = true;
|
||||
public static bool DoUpdateRO
|
||||
{
|
||||
get { return VlnSettings._DoUpdateRO; }
|
||||
set { VlnSettings._DoUpdateRO = value; }
|
||||
}
|
||||
private static bool _DebugPagination = false;
|
||||
public static bool DebugPagination
|
||||
{
|
||||
get { return VlnSettings._DebugPagination; }
|
||||
set { VlnSettings._DebugPagination = value; }
|
||||
}
|
||||
private static bool _DebugText = false;
|
||||
public static bool DebugText
|
||||
{
|
||||
get { return VlnSettings._DebugText; }
|
||||
set { VlnSettings._DebugText = value; }
|
||||
}
|
||||
private static bool _DebugMode = false;
|
||||
|
||||
public static bool DoUpdateRO { get; set; } = true;
|
||||
public static bool DebugPagination { get; set; } = false;
|
||||
public static bool DebugText { get; set; } = false;
|
||||
private static bool _DebugMode = false;
|
||||
public static bool DebugMode
|
||||
{
|
||||
get
|
||||
@@ -135,8 +119,7 @@ namespace Volian.Base.Library
|
||||
{
|
||||
if (parameter.ToUpper().StartsWith("/" + commandName.ToUpper() + "="))
|
||||
{
|
||||
float result = def;
|
||||
if (float.TryParse(parameter.Substring(commandName.Length + 2), out result))
|
||||
if (float.TryParse(parameter.Substring(commandName.Length + 2), out float result))
|
||||
return result;
|
||||
else
|
||||
return def;
|
||||
@@ -182,7 +165,7 @@ namespace Volian.Base.Library
|
||||
// This will create a Temp\VE-PROMS folder in the LocalSettings Folder.
|
||||
//XP - C:\Documents and Settings\{user}\Local Settings\Application Data\Temp\VEPROMS
|
||||
//Vista - C:\Users\{user}\AppData\Local\Temp\VEPROMS
|
||||
_TemporaryFolder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Temp";
|
||||
_TemporaryFolder = $@"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\Temp";
|
||||
if (!Directory.Exists(TemporaryFolder)) Directory.CreateDirectory(TemporaryFolder);
|
||||
_TemporaryFolder += @"\VEPROMS";
|
||||
if (!Directory.Exists(TemporaryFolder)) Directory.CreateDirectory(TemporaryFolder);
|
||||
@@ -190,26 +173,11 @@ namespace Volian.Base.Library
|
||||
return _TemporaryFolder;
|
||||
}
|
||||
}
|
||||
private static string _UserID=Environment.UserName.ToUpper();
|
||||
public static string UserID
|
||||
{
|
||||
get { return VlnSettings._UserID; }
|
||||
set { VlnSettings._UserID = value; }
|
||||
}
|
||||
private static bool _StepTypeToolTip = false;
|
||||
public static bool StepTypeToolTip
|
||||
{
|
||||
get { return VlnSettings._StepTypeToolTip; }
|
||||
set { VlnSettings._StepTypeToolTip = value; }
|
||||
}
|
||||
// C2029-025 Show or hide replace words. Can highlight replace words in editor.
|
||||
private static bool _cbShwRplWrdsColor = false;
|
||||
public static bool cbShwRplWrdsColor
|
||||
{
|
||||
get { return VlnSettings._cbShwRplWrdsColor; }
|
||||
set { VlnSettings._cbShwRplWrdsColor = value; }
|
||||
}
|
||||
private static string _ReleaseMode = null;
|
||||
|
||||
public static string UserID { get; set; } = Environment.UserName.ToUpper();
|
||||
public static bool StepTypeToolTip { get; set; } = false;
|
||||
public static bool cbShwRplWrdsColor { get; set; } = false;
|
||||
private static string _ReleaseMode = null;
|
||||
public static string ReleaseMode
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user