AppConfigHelper.cs 597 字节
using System;
using System.Windows.Forms;
using System.Xml;

namespace Common
{
    public class AppConfigHelper
    {
        public static System.Configuration.Configuration config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None);
        public static string GetValue(string key, string defal = "")
        {

           return ConfigHelper.Config.Get(key, defal);
        }

        public static int GetIntValue(string key, int defal = 0)
        {
            return ConfigHelper.Config.Get(key, defal);
        }
    }
}