private void accessFolderItem() { this.mainWebBrowser.Invoke((MethodInvoker) delegate { this.mainWebBrowser.Load(this.folderList[this.currentFolderIndex].ToString()); this.step = "accessFolderItem"; this.isDownloadFileStep = true; writeLog("------Step - accessFolderItem:"); writeLog(this.folderList[this.currentFolderIndex].ToString()); this.currentFolderPanel = (FolderItemPanel)this.listItemFlow.Controls[this.currentFolderIndex]; this.currentFolderPanel.updateBackground(Color.White); this.currentFolderPanel.changeProgressbarState(true); this.listItemFlow.ScrollControlIntoView(this.currentFolderPanel); }); }
private void addFolderPanelItem(string folderName, int totalFiles) { FolderItemPanel us1 = new FolderItemPanel(folderName, totalFiles); this.listItemFlow.Controls.Add(us1); }