|
|
@@ -17,8 +17,14 @@ namespace UAS_XmlAnalysor
|
|
|
DataTable dt;
|
|
|
|
|
|
Thread InitDB;
|
|
|
-
|
|
|
- string CachePath = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":/Cache/Cache.xml";
|
|
|
+ /// <summary>
|
|
|
+ /// 缓存的文件
|
|
|
+ /// </summary>
|
|
|
+ string CachePath = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":/UAS_MES/XmlAnalysor/Cache.xml";
|
|
|
+ /// <summary>
|
|
|
+ /// 缓存的文件夹
|
|
|
+ /// </summary>
|
|
|
+ string CachePathFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":/UAS_MES/XmlAnalysor/";
|
|
|
|
|
|
public Form1()
|
|
|
{
|
|
|
@@ -43,6 +49,8 @@ namespace UAS_XmlAnalysor
|
|
|
Master.ValueMember = "ma_user";
|
|
|
try
|
|
|
{
|
|
|
+ if (!Directory.Exists(CachePathFolder))
|
|
|
+ Directory.CreateDirectory(CachePathFolder);
|
|
|
XmlReader myReader = XmlReader.Create(CachePath);
|
|
|
while (myReader.Read())
|
|
|
{
|