Esempio n. 1
0
        /// <summary>
        /// 静态内容初始化
        /// </summary>
        static BackLog()
        {
            //将 日志记录放在当前DLL的目录下
            string fullname = LocalPathHelper.GetCurrentDLLSub("log") + "\\MySqlBack_Log.txt";

            _log = new LogHelper.LogHelper(fullname, true);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取文件存储位置
        /// </summary>
        /// <returns></returns>
        public string GetFileName()
        {
            string filename = LocalPathHelper.GetCurrentDLLSub("data") + string.Format("\\{0}.xml", _Character);

            if (File.Exists(filename) == false)
            {
                File.Create(filename).Close();
            }
            return(filename);
        }
Esempio n. 3
0
        /// <summary>
        /// 获取 文件存储位置
        /// </summary>
        /// <returns></returns>
        public string GetFileName()
        {
            string filename = LocalPathHelper.GetCurrentDLLSub("data") + "\\hostinfo.xml";

            if (File.Exists(filename) == false)
            {
                File.Create(filename).Close();
            }

            return(filename);
        }