private bool ValidationDisabled()
{
string filename = new AppSettingsReader().GetValue("simulationconfigurationfile", typeof(System.String)).ToString();
string line;
string deviceName = string.Empty;
// Read the file and display it line by line.
StreamReader file = new
System.IO.StreamReader(filename);
{
while ((line = file.ReadLine()) != null)
{
if (line.StartsWith("ValidateCreditCard"))
{
string[] onoff = line.Split('=');
return (onoff[1].ToLower() == "off");
}
}
}
return false;
}