// Decompiled with JetBrains decompiler // Type: GDRomExplorer.UserControls.PrimaryVolumeDescriptorViewer // Assembly: GD-ROM Explorer, Version=1.6.3.0, Culture=neutral, PublicKeyToken=611be24fdeb07e08 // MVID: B7A7D10A-9A63-4E9E-9840-D297E5FC2219 // Assembly location: GD-ROM Explorer.exe using GDRomExplorer.Resources; using ImageReader.ISO9660.VolumeDescriptors; using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace GDRomExplorer.UserControls { public class PrimaryVolumeDescriptorViewer : UserControl { private IContainer components; private TextBox tbVolumeSpaceSize; private Label lbVolumeSpaceSize; private TextBox tbVolumeNumber; private Label lbVolumeNumber; private TextBox tbVolumeSetId; private Label lbVolumeSetId; private TextBox tbVolumeCreationDate; private Label lbVloumeCreationDate; private TextBox tbVolumeModificationDate; private Label lbVolumeModificationDate; private TextBox tbVolumeExpirationDate; private Label lbVolumeExpirationDate; private TextBox tbVolumeEffectiveDate; private Label lbVolumeEffectiveDate; private TextBox tbSystemId; private TextBox tbVolumeId; private TextBox tbPublisherId; private TextBox tbPreparerId; private TextBox tbApplicationId; private TextBox tbCopyrightFileId; private TextBox tbAbstractFileId; private TextBox tbBibliographicFileId; private Label lbSystemId; private Label lbVolumeId; private Label nbPublisherId; private Label lbPreparerId; private Label lbApplicationId; private Label lbCopyrightFileId; private Label lbAbstractFileId; private Label lbBibliographicFileId; private TextBox tbLogicalBlockSize; private Label lbLogicalBlockSize; public PrimaryVolumeDescriptorViewer() => this.InitializeComponent(); public void LoadPrimaryVolumeDescriptor(PrimaryVolumeDescriptor PrimaryVolumeDescriptor) { if (PrimaryVolumeDescriptor == null) return; this.tbSystemId.Text = PrimaryVolumeDescriptor.SystemIdentifier; this.tbVolumeId.Text = PrimaryVolumeDescriptor.Identifier; this.tbApplicationId.Text = PrimaryVolumeDescriptor.ApplicationIdentifier; this.tbPublisherId.Text = PrimaryVolumeDescriptor.PublisherIdentifier; this.tbPreparerId.Text = PrimaryVolumeDescriptor.PreparerIdentifier; this.tbVolumeSetId.Text = PrimaryVolumeDescriptor.SetIdentifier; this.tbVolumeSpaceSize.Text = string.Format("{0} blocks", (object) PrimaryVolumeDescriptor.SpaceSize); this.tbVolumeNumber.Text = string.Format("{0}/{1}", (object) PrimaryVolumeDescriptor.SequenceNumber, (object) PrimaryVolumeDescriptor.SetSize); this.tbLogicalBlockSize.Text = string.Format("{0} bytes", (object) PrimaryVolumeDescriptor.LogicalBlockSize); this.UpdateDateTimeTextBox(this.tbVolumeCreationDate, PrimaryVolumeDescriptor.CreationDateTime); this.UpdateDateTimeTextBox(this.tbVolumeModificationDate, PrimaryVolumeDescriptor.ModificationDateTime); this.UpdateDateTimeTextBox(this.tbVolumeEffectiveDate, PrimaryVolumeDescriptor.EffectiveDateTime); this.UpdateDateTimeTextBox(this.tbVolumeExpirationDate, PrimaryVolumeDescriptor.ExpirationDateTime); this.tbAbstractFileId.Text = PrimaryVolumeDescriptor.AbstractFileIdentifier; this.tbCopyrightFileId.Text = PrimaryVolumeDescriptor.CopyrightFileIdentifier; this.tbBibliographicFileId.Text = PrimaryVolumeDescriptor.BibliographicFileIdentifier; } private void UpdateDateTimeTextBox(TextBox dateTimeTextBox, DateTime? dateTime) { if (dateTime.HasValue) dateTimeTextBox.Text = dateTime.Value.ToString(); else dateTimeTextBox.Text = Strings.InvalidDateTimeText; } protected override void Dispose(bool disposing) { if (disposing && this.components != null) this.components.Dispose(); base.Dispose(disposing); } private void InitializeComponent() { this.tbVolumeSpaceSize = new TextBox(); this.lbVolumeSpaceSize = new Label(); this.tbVolumeNumber = new TextBox(); this.lbVolumeNumber = new Label(); this.tbVolumeSetId = new TextBox(); this.lbVolumeSetId = new Label(); this.tbVolumeCreationDate = new TextBox(); this.lbVloumeCreationDate = new Label(); this.tbVolumeModificationDate = new TextBox(); this.lbVolumeModificationDate = new Label(); this.tbVolumeExpirationDate = new TextBox(); this.lbVolumeExpirationDate = new Label(); this.tbVolumeEffectiveDate = new TextBox(); this.lbVolumeEffectiveDate = new Label(); this.tbSystemId = new TextBox(); this.tbVolumeId = new TextBox(); this.tbPublisherId = new TextBox(); this.tbPreparerId = new TextBox(); this.tbApplicationId = new TextBox(); this.tbCopyrightFileId = new TextBox(); this.tbAbstractFileId = new TextBox(); this.tbBibliographicFileId = new TextBox(); this.lbSystemId = new Label(); this.lbVolumeId = new Label(); this.nbPublisherId = new Label(); this.lbPreparerId = new Label(); this.lbApplicationId = new Label(); this.lbCopyrightFileId = new Label(); this.lbAbstractFileId = new Label(); this.lbBibliographicFileId = new Label(); this.tbLogicalBlockSize = new TextBox(); this.lbLogicalBlockSize = new Label(); this.SuspendLayout(); this.tbVolumeSpaceSize.BackColor = SystemColors.Window; this.tbVolumeSpaceSize.Location = new Point(414, 48); this.tbVolumeSpaceSize.Margin = new Padding(2); this.tbVolumeSpaceSize.Name = "tbVolumeSpaceSize"; this.tbVolumeSpaceSize.ReadOnly = true; this.tbVolumeSpaceSize.Size = new Size(155, 20); this.tbVolumeSpaceSize.TabIndex = 9; this.tbVolumeSpaceSize.TextAlign = HorizontalAlignment.Center; this.lbVolumeSpaceSize.Location = new Point(277, 50); this.lbVolumeSpaceSize.Margin = new Padding(2, 0, 2, 0); this.lbVolumeSpaceSize.MinimumSize = new Size(130, 13); this.lbVolumeSpaceSize.Name = "lbVolumeSpaceSize"; this.lbVolumeSpaceSize.Size = new Size(133, 13); this.lbVolumeSpaceSize.TabIndex = 8; this.lbVolumeSpaceSize.Text = "Volume Space Size:"; this.lbVolumeSpaceSize.TextAlign = ContentAlignment.TopRight; this.tbVolumeNumber.BackColor = SystemColors.Window; this.tbVolumeNumber.Location = new Point(414, 26); this.tbVolumeNumber.Margin = new Padding(2); this.tbVolumeNumber.Name = "tbVolumeNumber"; this.tbVolumeNumber.ReadOnly = true; this.tbVolumeNumber.Size = new Size(155, 20); this.tbVolumeNumber.TabIndex = 11; this.tbVolumeNumber.TextAlign = HorizontalAlignment.Center; this.lbVolumeNumber.Location = new Point(277, 28); this.lbVolumeNumber.Margin = new Padding(2, 0, 2, 0); this.lbVolumeNumber.MinimumSize = new Size(130, 13); this.lbVolumeNumber.Name = "lbVolumeNumber"; this.lbVolumeNumber.Size = new Size(133, 13); this.lbVolumeNumber.TabIndex = 10; this.lbVolumeNumber.Text = "Volume Number:"; this.lbVolumeNumber.TextAlign = ContentAlignment.TopRight; this.tbVolumeSetId.BackColor = SystemColors.Window; this.tbVolumeSetId.Location = new Point(414, 4); this.tbVolumeSetId.Margin = new Padding(2); this.tbVolumeSetId.Name = "tbVolumeSetId"; this.tbVolumeSetId.ReadOnly = true; this.tbVolumeSetId.Size = new Size(155, 20); this.tbVolumeSetId.TabIndex = 23; this.tbVolumeSetId.TextAlign = HorizontalAlignment.Center; this.lbVolumeSetId.Location = new Point(277, 6); this.lbVolumeSetId.Margin = new Padding(2, 0, 2, 0); this.lbVolumeSetId.MinimumSize = new Size(130, 13); this.lbVolumeSetId.Name = "lbVolumeSetId"; this.lbVolumeSetId.Size = new Size(133, 13); this.lbVolumeSetId.TabIndex = 22; this.lbVolumeSetId.Text = "Volume Set ID:"; this.lbVolumeSetId.TextAlign = ContentAlignment.TopRight; this.tbVolumeCreationDate.BackColor = SystemColors.Window; this.tbVolumeCreationDate.Location = new Point(414, 114); this.tbVolumeCreationDate.Margin = new Padding(2); this.tbVolumeCreationDate.Name = "tbVolumeCreationDate"; this.tbVolumeCreationDate.ReadOnly = true; this.tbVolumeCreationDate.Size = new Size(155, 20); this.tbVolumeCreationDate.TabIndex = 37; this.tbVolumeCreationDate.TextAlign = HorizontalAlignment.Center; this.lbVloumeCreationDate.Location = new Point(277, 116); this.lbVloumeCreationDate.Margin = new Padding(2, 0, 2, 0); this.lbVloumeCreationDate.MinimumSize = new Size(130, 13); this.lbVloumeCreationDate.Name = "lbVloumeCreationDate"; this.lbVloumeCreationDate.Size = new Size(133, 13); this.lbVloumeCreationDate.TabIndex = 36; this.lbVloumeCreationDate.Text = "Volume Creation Date:"; this.lbVloumeCreationDate.TextAlign = ContentAlignment.TopRight; this.tbVolumeModificationDate.BackColor = SystemColors.Window; this.tbVolumeModificationDate.Location = new Point(414, 136); this.tbVolumeModificationDate.Margin = new Padding(2); this.tbVolumeModificationDate.Name = "tbVolumeModificationDate"; this.tbVolumeModificationDate.ReadOnly = true; this.tbVolumeModificationDate.Size = new Size(155, 20); this.tbVolumeModificationDate.TabIndex = 39; this.tbVolumeModificationDate.TextAlign = HorizontalAlignment.Center; this.lbVolumeModificationDate.Location = new Point(277, 138); this.lbVolumeModificationDate.Margin = new Padding(2, 0, 2, 0); this.lbVolumeModificationDate.MinimumSize = new Size(130, 13); this.lbVolumeModificationDate.Name = "lbVolumeModificationDate"; this.lbVolumeModificationDate.Size = new Size(133, 13); this.lbVolumeModificationDate.TabIndex = 38; this.lbVolumeModificationDate.Text = "Volume Modification Date:"; this.lbVolumeModificationDate.TextAlign = ContentAlignment.TopRight; this.tbVolumeExpirationDate.BackColor = SystemColors.Window; this.tbVolumeExpirationDate.Location = new Point(414, 70); this.tbVolumeExpirationDate.Margin = new Padding(2); this.tbVolumeExpirationDate.Name = "tbVolumeExpirationDate"; this.tbVolumeExpirationDate.ReadOnly = true; this.tbVolumeExpirationDate.Size = new Size(155, 20); this.tbVolumeExpirationDate.TabIndex = 41; this.tbVolumeExpirationDate.TextAlign = HorizontalAlignment.Center; this.lbVolumeExpirationDate.Location = new Point(277, 72); this.lbVolumeExpirationDate.Margin = new Padding(2, 0, 2, 0); this.lbVolumeExpirationDate.MinimumSize = new Size(130, 13); this.lbVolumeExpirationDate.Name = "lbVolumeExpirationDate"; this.lbVolumeExpirationDate.Size = new Size(133, 13); this.lbVolumeExpirationDate.TabIndex = 40; this.lbVolumeExpirationDate.Text = "Volume Expiration Date:"; this.lbVolumeExpirationDate.TextAlign = ContentAlignment.TopRight; this.tbVolumeEffectiveDate.BackColor = SystemColors.Window; this.tbVolumeEffectiveDate.Location = new Point(414, 92); this.tbVolumeEffectiveDate.Margin = new Padding(2); this.tbVolumeEffectiveDate.Name = "tbVolumeEffectiveDate"; this.tbVolumeEffectiveDate.ReadOnly = true; this.tbVolumeEffectiveDate.Size = new Size(155, 20); this.tbVolumeEffectiveDate.TabIndex = 43; this.tbVolumeEffectiveDate.TextAlign = HorizontalAlignment.Center; this.lbVolumeEffectiveDate.Location = new Point(277, 94); this.lbVolumeEffectiveDate.Margin = new Padding(2, 0, 2, 0); this.lbVolumeEffectiveDate.MinimumSize = new Size(130, 13); this.lbVolumeEffectiveDate.Name = "lbVolumeEffectiveDate"; this.lbVolumeEffectiveDate.Size = new Size(133, 13); this.lbVolumeEffectiveDate.TabIndex = 42; this.lbVolumeEffectiveDate.Text = "Volume Effective Date:"; this.lbVolumeEffectiveDate.TextAlign = ContentAlignment.TopRight; this.tbSystemId.BackColor = SystemColors.Window; this.tbSystemId.Location = new Point(113, 4); this.tbSystemId.Margin = new Padding(2); this.tbSystemId.Name = "tbSystemId"; this.tbSystemId.ReadOnly = true; this.tbSystemId.Size = new Size(155, 20); this.tbSystemId.TabIndex = 5; this.tbSystemId.TextAlign = HorizontalAlignment.Center; this.tbVolumeId.BackColor = SystemColors.Window; this.tbVolumeId.Location = new Point(113, 26); this.tbVolumeId.Margin = new Padding(2); this.tbVolumeId.Name = "tbVolumeId"; this.tbVolumeId.ReadOnly = true; this.tbVolumeId.Size = new Size(155, 20); this.tbVolumeId.TabIndex = 7; this.tbVolumeId.TextAlign = HorizontalAlignment.Center; this.tbPublisherId.BackColor = SystemColors.Window; this.tbPublisherId.Location = new Point(113, 70); this.tbPublisherId.Margin = new Padding(2); this.tbPublisherId.Name = "tbPublisherId"; this.tbPublisherId.ReadOnly = true; this.tbPublisherId.Size = new Size(155, 20); this.tbPublisherId.TabIndex = 25; this.tbPublisherId.TextAlign = HorizontalAlignment.Center; this.tbPreparerId.BackColor = SystemColors.Window; this.tbPreparerId.Location = new Point(113, 92); this.tbPreparerId.Margin = new Padding(2); this.tbPreparerId.Name = "tbPreparerId"; this.tbPreparerId.ReadOnly = true; this.tbPreparerId.Size = new Size(155, 20); this.tbPreparerId.TabIndex = 27; this.tbPreparerId.TextAlign = HorizontalAlignment.Center; this.tbApplicationId.BackColor = SystemColors.Window; this.tbApplicationId.Location = new Point(113, 48); this.tbApplicationId.Margin = new Padding(2); this.tbApplicationId.Name = "tbApplicationId"; this.tbApplicationId.ReadOnly = true; this.tbApplicationId.Size = new Size(155, 20); this.tbApplicationId.TabIndex = 29; this.tbApplicationId.TextAlign = HorizontalAlignment.Center; this.tbCopyrightFileId.BackColor = SystemColors.Window; this.tbCopyrightFileId.Location = new Point(113, 114); this.tbCopyrightFileId.Margin = new Padding(2); this.tbCopyrightFileId.Name = "tbCopyrightFileId"; this.tbCopyrightFileId.ReadOnly = true; this.tbCopyrightFileId.Size = new Size(155, 20); this.tbCopyrightFileId.TabIndex = 31; this.tbCopyrightFileId.TextAlign = HorizontalAlignment.Center; this.tbAbstractFileId.BackColor = SystemColors.Window; this.tbAbstractFileId.Location = new Point(113, 136); this.tbAbstractFileId.Margin = new Padding(2); this.tbAbstractFileId.Name = "tbAbstractFileId"; this.tbAbstractFileId.ReadOnly = true; this.tbAbstractFileId.Size = new Size(155, 20); this.tbAbstractFileId.TabIndex = 33; this.tbAbstractFileId.TextAlign = HorizontalAlignment.Center; this.tbBibliographicFileId.BackColor = SystemColors.Window; this.tbBibliographicFileId.Location = new Point(113, 159); this.tbBibliographicFileId.Margin = new Padding(2); this.tbBibliographicFileId.Name = "tbBibliographicFileId"; this.tbBibliographicFileId.ReadOnly = true; this.tbBibliographicFileId.Size = new Size(155, 20); this.tbBibliographicFileId.TabIndex = 35; this.tbBibliographicFileId.TextAlign = HorizontalAlignment.Center; this.lbSystemId.Location = new Point(2, 6); this.lbSystemId.Margin = new Padding(2, 0, 2, 0); this.lbSystemId.MinimumSize = new Size(107, 13); this.lbSystemId.Name = "lbSystemId"; this.lbSystemId.Size = new Size(107, 13); this.lbSystemId.TabIndex = 4; this.lbSystemId.Text = "System ID:"; this.lbSystemId.TextAlign = ContentAlignment.TopRight; this.lbVolumeId.Location = new Point(2, 28); this.lbVolumeId.Margin = new Padding(2, 0, 2, 0); this.lbVolumeId.MinimumSize = new Size(107, 13); this.lbVolumeId.Name = "lbVolumeId"; this.lbVolumeId.Size = new Size(107, 13); this.lbVolumeId.TabIndex = 6; this.lbVolumeId.Text = "Volume ID:"; this.lbVolumeId.TextAlign = ContentAlignment.TopRight; this.nbPublisherId.Location = new Point(2, 72); this.nbPublisherId.Margin = new Padding(2, 0, 2, 0); this.nbPublisherId.MinimumSize = new Size(107, 13); this.nbPublisherId.Name = "nbPublisherId"; this.nbPublisherId.Size = new Size(107, 13); this.nbPublisherId.TabIndex = 24; this.nbPublisherId.Text = "Publisher ID:"; this.nbPublisherId.TextAlign = ContentAlignment.TopRight; this.lbPreparerId.Location = new Point(2, 94); this.lbPreparerId.Margin = new Padding(2, 0, 2, 0); this.lbPreparerId.MinimumSize = new Size(107, 13); this.lbPreparerId.Name = "lbPreparerId"; this.lbPreparerId.Size = new Size(107, 13); this.lbPreparerId.TabIndex = 26; this.lbPreparerId.Text = "Preparer ID:"; this.lbPreparerId.TextAlign = ContentAlignment.TopRight; this.lbApplicationId.Location = new Point(2, 50); this.lbApplicationId.Margin = new Padding(2, 0, 2, 0); this.lbApplicationId.MinimumSize = new Size(107, 13); this.lbApplicationId.Name = "lbApplicationId"; this.lbApplicationId.Size = new Size(107, 13); this.lbApplicationId.TabIndex = 28; this.lbApplicationId.Text = "Application ID:"; this.lbApplicationId.TextAlign = ContentAlignment.TopRight; this.lbCopyrightFileId.Location = new Point(2, 116); this.lbCopyrightFileId.Margin = new Padding(2, 0, 2, 0); this.lbCopyrightFileId.MinimumSize = new Size(107, 13); this.lbCopyrightFileId.Name = "lbCopyrightFileId"; this.lbCopyrightFileId.Size = new Size(107, 13); this.lbCopyrightFileId.TabIndex = 30; this.lbCopyrightFileId.Text = "Copyright File ID:"; this.lbCopyrightFileId.TextAlign = ContentAlignment.TopRight; this.lbAbstractFileId.Location = new Point(2, 138); this.lbAbstractFileId.Margin = new Padding(2, 0, 2, 0); this.lbAbstractFileId.MinimumSize = new Size(107, 13); this.lbAbstractFileId.Name = "lbAbstractFileId"; this.lbAbstractFileId.Size = new Size(107, 13); this.lbAbstractFileId.TabIndex = 32; this.lbAbstractFileId.Text = "Abstract File ID:"; this.lbAbstractFileId.TextAlign = ContentAlignment.TopRight; this.lbBibliographicFileId.Location = new Point(2, 161); this.lbBibliographicFileId.Margin = new Padding(2, 0, 2, 0); this.lbBibliographicFileId.MinimumSize = new Size(107, 13); this.lbBibliographicFileId.Name = "lbBibliographicFileId"; this.lbBibliographicFileId.Size = new Size(107, 13); this.lbBibliographicFileId.TabIndex = 34; this.lbBibliographicFileId.Text = "Bibliographic File ID:"; this.lbBibliographicFileId.TextAlign = ContentAlignment.TopRight; this.tbLogicalBlockSize.BackColor = SystemColors.Window; this.tbLogicalBlockSize.Location = new Point(414, 159); this.tbLogicalBlockSize.Margin = new Padding(2); this.tbLogicalBlockSize.Name = "tbLogicalBlockSize"; this.tbLogicalBlockSize.ReadOnly = true; this.tbLogicalBlockSize.Size = new Size(155, 20); this.tbLogicalBlockSize.TabIndex = 45; this.tbLogicalBlockSize.TextAlign = HorizontalAlignment.Center; this.lbLogicalBlockSize.Location = new Point(277, 161); this.lbLogicalBlockSize.Margin = new Padding(2, 0, 2, 0); this.lbLogicalBlockSize.MinimumSize = new Size(130, 13); this.lbLogicalBlockSize.Name = "lbLogicalBlockSize"; this.lbLogicalBlockSize.Size = new Size(133, 13); this.lbLogicalBlockSize.TabIndex = 44; this.lbLogicalBlockSize.Text = "Logical Block Size:"; this.lbLogicalBlockSize.TextAlign = ContentAlignment.TopRight; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.AutoSize = true; this.Controls.Add((Control) this.tbLogicalBlockSize); this.Controls.Add((Control) this.lbLogicalBlockSize); this.Controls.Add((Control) this.tbVolumeEffectiveDate); this.Controls.Add((Control) this.lbVolumeEffectiveDate); this.Controls.Add((Control) this.tbVolumeExpirationDate); this.Controls.Add((Control) this.lbVolumeExpirationDate); this.Controls.Add((Control) this.tbVolumeModificationDate); this.Controls.Add((Control) this.lbVolumeModificationDate); this.Controls.Add((Control) this.tbVolumeCreationDate); this.Controls.Add((Control) this.lbVloumeCreationDate); this.Controls.Add((Control) this.tbBibliographicFileId); this.Controls.Add((Control) this.lbBibliographicFileId); this.Controls.Add((Control) this.tbAbstractFileId); this.Controls.Add((Control) this.lbAbstractFileId); this.Controls.Add((Control) this.tbCopyrightFileId); this.Controls.Add((Control) this.lbCopyrightFileId); this.Controls.Add((Control) this.tbApplicationId); this.Controls.Add((Control) this.lbApplicationId); this.Controls.Add((Control) this.tbPreparerId); this.Controls.Add((Control) this.lbPreparerId); this.Controls.Add((Control) this.tbPublisherId); this.Controls.Add((Control) this.nbPublisherId); this.Controls.Add((Control) this.tbVolumeSetId); this.Controls.Add((Control) this.lbVolumeSetId); this.Controls.Add((Control) this.tbVolumeNumber); this.Controls.Add((Control) this.lbVolumeNumber); this.Controls.Add((Control) this.tbVolumeSpaceSize); this.Controls.Add((Control) this.lbVolumeSpaceSize); this.Controls.Add((Control) this.tbVolumeId); this.Controls.Add((Control) this.lbVolumeId); this.Controls.Add((Control) this.tbSystemId); this.Controls.Add((Control) this.lbSystemId); this.Margin = new Padding(2); this.Name = nameof (PrimaryVolumeDescriptorViewer); this.Size = new Size(575, 181); this.ResumeLayout(false); this.PerformLayout(); } } }