using System;
using AnticipatingMinds.PlatformServices.Configuration;
namespace AnticipatingMinds.devMetricsAddIn{
/// <summary>
/// Summary description for devMetricsAddInConfiguration.
/// </summary>
public class devMetricsAddInConfiguration : ConfigurationSection
{
private devMetricsAddInConfiguration()
{
}
private static devMetricsAddInConfiguration instance = null;
private static object instanceLock = new object();
public static devMetricsAddInConfiguration GetInstance()
{
if(instance == null)
{
lock(instanceLock)
{
instance = new devMetricsAddInConfiguration();
instance.Load();
}
}
return instance;
}
[RegistryConfigurationValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Anticipating Minds\devMetrics","ShowReportInExternalWindow",false)]
public bool ShowReportInExternalWindow
{
get
{
return showReportInExternalWindow;
}
set
{
showReportInExternalWindow = value;
}
}
[RegistryConfigurationValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Anticipating Minds\devMetrics","HtmlXsltFileName","http://www.anticipatingminds.com/Content/Products/devMetrics/Report/CodeMeasurements.xsl")]
public string HtmlXsltFileName
{
get
{
return htmlXsltFileName;
}
set
{
htmlXsltFileName = value;
}
}
bool showReportInExternalWindow = false;
string htmlXsltFileName;
}
}
|