/// <summary> /// 打开目录响应函数 /// </summary> public void OpenDirectionary(string Path) { ArrayList FileList = FileUtilty.GetAllFilesFullName(Path); for (int i = 0; i < FileList.Count; i++) { ExistFiles.FileInformation fi = new ExistFiles.FileInformation(); fi.FileName = FileUtilty.FullNameToName(FileList[i].ToString()); fi.FullName = FileList[i].ToString(); fi.Lable = "Lable:"; ExistFiles.g_FileInfoCollector.Add(fi); } ExistFiles.SentToDB(); SetCol(); SetDataGridView1Width(); }
private void LoadExistFiles() { existFiles = new ExistFiles(dataGridView1); existFiles.Init(); }