2021-06-15 01:41:34 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2026-06-04 01:39:30 +00:00
|
|
|
|
namespace Config
|
2021-06-15 01:41:34 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 配置类,保存在文件中的配置信息(本系统基于乘黄V2架构)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class Public_Config
|
2021-06-12 14:09:28 +00:00
|
|
|
|
{
|
2021-06-15 01:41:34 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static bool HideByCloseBtn = false;
|
|
|
|
|
|
public static void LoadSetting()
|
|
|
|
|
|
{
|
2026-06-04 01:39:30 +00:00
|
|
|
|
ryControls.RySetting mySetting = new ryControls.RySetting();
|
|
|
|
|
|
mySetting.FilePath = Soft_ConstInfo.UserDataFolder + "\\Setting.xml";
|
|
|
|
|
|
mySetting.ReadToMem();
|
|
|
|
|
|
HideByCloseBtn = mySetting.GetFromMem("HideByCloseBtn", false);
|
2021-06-15 01:41:34 +00:00
|
|
|
|
//low_count = Stor.GetAttrValue("LowCount", 10);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|