/// <summary> /// 保存数据 /// </summary> public void Save() { lock (lockObject) { Dictionary <string, string> buff = new Dictionary <string, string>(); buff.Add("OilIndex", OilIndex.ToString()); buff.Add("TestIndex", TestIndex.ToString()); buff.Add("AnGuiIndex", AnGuiIndex.ToString()); buff.Add("ErrorIndex", ErrorIndex.ToString()); buff.Add("MaterialIndex", MaterialIndex.ToString()); buff.Add("MaterialIndexReport", MaterialIndexReport.ToString()); buff.Add("OverFirstNiuJu", OverFirstNiuJu.ToString()); buff.Add("OverSecondNiuJu", OverSecondNiuJu.ToString()); All.Class.FileIO.Write(string.Format("{0}\\{1}", XMLDirectory, FileName), All.Class.SSFile.Dictionary2Text(buff), System.IO.FileMode.Create); } }