} /* UpdateSipperDriveStats */ private void Download_Click(object sender, EventArgs e) { UpdateAvailableBytes(); SipperFileControlBlockList selectedFCBs = GetSelectedFiles(); if (selectedFCBs.Count < 1) { MessageBox.Show("No files are selected"); return; } CheckHardDriveTimer.Enabled = false; // While we are downloading; we do not want to be periodically // polling the hard drive. That would interfere with the download. DownLoadFiles downLoadFiles = new DownLoadFiles(disk, selectedFCBs, destDir); downLoadFiles.ShowDialog(); downLoadFiles.Dispose(); downLoadFiles = null; UpdateAvailableBytes(); for (int x = 0; x < SipperFileListView.Items.Count; x++) { FcbListViewItem fcbLVI = (FcbListViewItem)SipperFileListView.Items[x]; SipperFileControlBlock fcb = fcbLVI.FCB; if (fcb.DownLoaded) { fcbLVI.BackColor = Color.LightGray; } } CheckHardDriveTimer.Enabled = true; } /* Download_Click */
} /* ViewSipperHeader */ private void LoadSipperFileListView() { SipperFileListView.Items.Clear(); { ContextMenuStrip cms = new ContextMenuStrip(); cms.Items.Add("View File", null, ViewSipperFile); cms.Items.Add("View Header Info", null, ViewSipperHeader); SipperFileListView.ContextMenuStrip = cms; } disk = null; try { disk = new SipperDisk(this.readDirFromLogFiles); } catch { if (disk != null) { disk.Dispose(); disk = null; } } if (disk == null) { return; } SipperFileListView.Enabled = false; SipperFileListViewDisabled = true; partition = disk.GetSipperPartitionTableEntry(); SipperFileControlBlockList files = disk.SipperFiles(); foreach (SipperFileControlBlock fcb in files) { FcbListViewItem flvi = new FcbListViewItem(fcb); SipperFileListView.Items.Add(flvi); } SipperFileListViewDisabled = false; SipperFileListView.Enabled = true; UpdateSelectedBytes(); } /* LoadSipperFileListView */