using System;
using System.Collections.Generic;
namespace PrintBarCode.Helper
{
///
/// 系统配置
///
public sealed class DebugConfig
{
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI");
private static readonly Lazy lazy = new Lazy(() => new DebugConfig());
public static DebugConfig Instance
{
get
{
return lazy.Value;
}
}
public DebugConfig()
{
}
///
//打印机名称
///
public string PrintName
{
get { return iniHelper.IniReadValue("system", "PrintName"); }
set { iniHelper.IniWriteValue("system", "PrintName", value); }
}
///
//所在电脑IP
///
public string IP
{
get { return iniHelper.IniReadValue("system", "IP"); }
set { iniHelper.IniWriteValue("system", "IP", value); }
}
///
//是否打印空白页,1打印,0不打印
///
public string BlankFlag
{
get { return iniHelper.IniReadValue("system", "BlankFlag"); }
set { iniHelper.IniWriteValue("system", "BlankFlag", value); }
}
}
}