You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.3 KiB
C#
72 lines
2.3 KiB
C#
using FileDataUpload.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FileDataUpload.Entity
|
|
{
|
|
public sealed class AppConfig
|
|
{
|
|
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/App.InI");
|
|
|
|
private static readonly Lazy<AppConfig> lazy = new Lazy<AppConfig>(() => new AppConfig());
|
|
|
|
public static AppConfig Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
private AppConfig() { }
|
|
|
|
//public int pushFlag_RivetingRing = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_RivetingRing"));
|
|
|
|
//public int pushFlag_Stopper = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_Stopper"));
|
|
|
|
//public int pushFlag_displacingValve = Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_displacingValve"));
|
|
|
|
/// <summary>
|
|
/// 铆压环 推送标志位
|
|
/// </summary>
|
|
public int pushFlag_RivetingRing
|
|
{
|
|
get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_RivetingRing")); }
|
|
set { iNIFile.IniWriteValue("system", "pushFlag_RivetingRing", value.ToString()); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 限位器 推送标志位
|
|
/// </summary>
|
|
public int pushFlag_Stopper
|
|
{
|
|
get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_Stopper")); }
|
|
set { iNIFile.IniWriteValue("system", "pushFlag_Stopper", value.ToString()); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 排气阀片 推送标志位
|
|
/// </summary>
|
|
public int pushFlag_displacingValve
|
|
{
|
|
get { return Convert.ToInt32(iNIFile.IniReadValue("system", "pushFlag_displacingValve")); }
|
|
set { iNIFile.IniWriteValue("system", "pushFlag_displacingValve", value.ToString()); }
|
|
}
|
|
|
|
public string filePath
|
|
{
|
|
get { return iNIFile.IniReadValue("system", "filePath"); }
|
|
}
|
|
|
|
public string fileType
|
|
{
|
|
get { return iNIFile.IniReadValue("system", "fileType"); }
|
|
}
|
|
|
|
}
|
|
}
|