/// <summary> /// Populate the listView with all thumbnail images /// </summary> /// <param name="FolderData"></param> public static void Populate(FolderData FolderData) { FolderData.GetFiles(); // Get Files if (FolderData.FilesCount != 0) { Program.MainForm.pnl_header_container.lnk_FilesRename.Enabled = true; // Enable File Rename function in Header Program.MainForm.pnl_footer_container.trk_ImageSize.Enabled = true; // Enable Image size change in footer } else { Program.MainForm.pnl_header_container.lnk_FilesRename.Enabled = false; // Disable FileRename in Header Program.MainForm.pnl_footer_container.trk_ImageSize.Enabled = false; // Disable Change Size Image in Footer } files = FolderData.Files; // The list of files StopThread(); // Stop the execution of the thread ClearList(); // Clear the current List Preview(); // Fil the listView with the icon empty image FillListViewBK(); // Fill the ListView with the real images in background //Fill(new object()); return; }
private void LoadDataMethod() { var folderInf = new FolderData(@"D:\Лабараторные\Языки программирования\JapaneseCrosswords\JapaneseCrosswords\Crosswords"); Data = new ObservableCollection <FolderElement>(folderInf.GetFiles()); }