void OpenToolStripMenuItemClick(object sender, EventArgs e) { if(openFileDialog1.ShowDialog()==DialogResult.OK) { discimg = new ISO9660.Image(openFileDialog1.FileName); pvd = discimg.ReadPVD(); RefreshPVDInfo(); sectorPos = 0; RefreshSectorInfo(); } }
void OpenToolStripMenuItemClick(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { TreeNode vdNode = tvSectors.Nodes["nodeVolumeDescriptors"]; vdNode.Nodes.Clear(); discimg = new ISO9660.Image(openFileDialog1.FileName); foreach (VolumeDescriptor vd in discimg.VolumeDescriptors) { TreeNode node = vdNode.Nodes.Add(vd.VolumeDescriptorType.ToString()); node.Tag = vd; } TreeNode drNode = tvSectors.Nodes["nodeDirectoryRecords"]; drNode.Tag = discimg.RootDirectory; drNode.Nodes.Clear(); foreach (DirectoryRecord dr in discimg.RootDirectory.Children) { TreeNode node = drNode.Nodes.Add(dr.FileIdentifier); node.Tag = dr; } this.txtSectorStats.Text = discimg.SectorStats(); } }
public frmReader() { InitializeComponent(); sectorPos = 0; discimg = null; }