private IStep GetStep(string code, int date, string errFileName) { string path = this.path + "\\" + code + "\\"; CheckStep step = new CheckStep(path, code, date, errFileName); return(step); }
private void GetUpdateSteps(string path, string code, string errFileName) { string tickPath = path + "\\tick"; DirectoryInfo dir = new DirectoryInfo(tickPath); if (!dir.Exists) { return; } FileInfo[] files = dir.GetFiles(); for (int i = 0; i < files.Length; i++) { string fileName = files[i].Name; string dateStr = fileName.Substring(fileName.IndexOf('_') + 1, 8); int date = int.Parse(dateStr); CheckStep step = new CheckStep(path, code, date, errFileName); this.steps.Add(step); } }