public PageInfo(string name) { Name = name; NameCn = name; ValidType = EValidType.公共; HeadC = new List <string>(); Head = new List <string>(); HeadEnum = new List <string>(); TypeClient = new List <string>(); TypeServer = new List <string>(); ListValue = new List <List <string> >(); }
private void GetFileList(string path, EValidType ValidType) { if (Directory.Exists(path)) { foreach (string filename in Directory.GetFileSystemEntries(path)) { if (File.Exists(filename)) { string filename_excel = Path.GetFileNameWithoutExtension(filename); string firs = filename_excel.Substring(0, 1); if (firs != "A") { XFileInfo finfo = new XFileInfo(filename); finfo.ValidType = ValidType; DictFiles.Add(finfo.Name, finfo); } } } } }