Example #1
0
 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();
     }
 }
Example #2
0
 private void sectorStatsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MessageBox.Show(discimg.SectorStats());
 }