/// <summary> /// 初始化基金 /// </summary> private void Initfunds() { if (!File.Exists(Common.fundsPath)) { File.Create(Common.fundsPath).Close(); } else { StreamReader sr = new StreamReader(Common.fundsPath, Encoding.Default); string line = sr.ReadLine(); while (line != null) { string[] lineValue = line.Split(' '); Fund fund = new Fund() { Code = lineValue[0], Name = lineValue[1] }; fund.GetHistory(); fund.CreateHistoryList(); funds.Add(fund); line = sr.ReadLine(); } sr.Close(); } //fundHistoryInit(); //获取基金历史信息 //fundsRealUpdate(); // 基金实时刷新 }