/// <summary> /// 静态内容初始化 /// </summary> static BackLog() { //将 日志记录放在当前DLL的目录下 string fullname = LocalPathHelper.GetCurrentDLLSub("log") + "\\MySqlBack_Log.txt"; _log = new LogHelper.LogHelper(fullname, true); }
/// <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); }
/// <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); }