123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using NEROLib;
- namespace LYFZ.NeroDiscBurn.NET
- {
- /// <summary>
- /// Summary description for DriveInfo.
- /// </summary>
- public class DriveInfoForm : System.Windows.Forms.Form
- {
- private NeroDrive m_drive;
- private Nero m_nero;
- private ChooseMediaForm m_frmChooseMedia;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox c_HostAdapterName;
- private System.Windows.Forms.TextBox c_HostAdapterNumber;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Button c_Close;
- private System.Windows.Forms.TextBox c_DeviceID;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox c_DeviceType;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.TextBox c_DriveLetter;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.ListView c_Capabilities;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.TextBox c_BufUnderrunProt;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.TextBox c_MediaSupport;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.TextBox c_MediaReadSupport;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.TextBox c_MandatoryBUPSpeed;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.ListView c_SupportedAccessModes;
- private System.Windows.Forms.GroupBox groupBox1;
- private SpeedComboBox c_ReadSpeeds;
- private SpeedComboBox c_WriteSpeeds;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Button c_ChooseMedia;
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.Container components = null;
- public DriveInfoForm(Nero nero, NeroDrive drive)
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
- c_ReadSpeeds.m_bUseMaximum = false;
- c_WriteSpeeds.m_bUseMaximum = false;
- m_nero = nero;
- m_drive = drive;
- m_frmChooseMedia = new ChooseMediaForm (m_nero);
- }
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("Allowed");
- System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("DAO");
- System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Read CD Text");
- System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Variable Pauses in TAO");
- System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("DAO Write CD Text");
- System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("Image Recorder");
- System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("Undetected");
- System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem("IDE Bus");
- System.Windows.Forms.ListViewItem listViewItem9 = new System.Windows.Forms.ListViewItem("SCSI Bus");
- System.Windows.Forms.ListViewItem listViewItem10 = new System.Windows.Forms.ListViewItem("Buffer Underrun Protection");
- System.Windows.Forms.ListViewItem listViewItem11 = new System.Windows.Forms.ListViewItem("Allow Change Booktype");
- System.Windows.Forms.ListViewItem listViewItem12 = new System.Windows.Forms.ListViewItem("DVDPLUSVR Supported");
- System.Windows.Forms.ListViewItem listViewItem13 = new System.Windows.Forms.ListViewItem("Duallayer DVD Supported");
- System.Windows.Forms.ListViewItem listViewItem14 = new System.Windows.Forms.ListViewItem("eNoWriting");
- System.Windows.Forms.ListViewItem listViewItem15 = new System.Windows.Forms.ListViewItem("ePacketWriting");
- System.Windows.Forms.ListViewItem listViewItem16 = new System.Windows.Forms.ListViewItem("eManagedMRW");
- System.Windows.Forms.ListViewItem listViewItem17 = new System.Windows.Forms.ListViewItem("eRawMRW");
- this.c_Close = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.c_HostAdapterName = new System.Windows.Forms.TextBox();
- this.c_HostAdapterNumber = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.c_DeviceID = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.c_DeviceType = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.c_DriveLetter = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.c_Capabilities = new System.Windows.Forms.ListView();
- this.label7 = new System.Windows.Forms.Label();
- this.c_BufUnderrunProt = new System.Windows.Forms.TextBox();
- this.label8 = new System.Windows.Forms.Label();
- this.c_MediaSupport = new System.Windows.Forms.TextBox();
- this.label9 = new System.Windows.Forms.Label();
- this.c_MediaReadSupport = new System.Windows.Forms.TextBox();
- this.label10 = new System.Windows.Forms.Label();
- this.c_MandatoryBUPSpeed = new System.Windows.Forms.TextBox();
- this.c_SupportedAccessModes = new System.Windows.Forms.ListView();
- this.label11 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.c_ChooseMedia = new System.Windows.Forms.Button();
- this.label12 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.c_ReadSpeeds = new LYFZ.NeroDiscBurn.NET.SpeedComboBox();
- this.c_WriteSpeeds = new LYFZ.NeroDiscBurn.NET.SpeedComboBox();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // c_Close
- //
- this.c_Close.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.c_Close.Location = new System.Drawing.Point(384, 362);
- this.c_Close.Name = "c_Close";
- this.c_Close.Size = new System.Drawing.Size(90, 25);
- this.c_Close.TabIndex = 23;
- this.c_Close.Text = "Close";
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(10, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(134, 17);
- this.label1.TabIndex = 0;
- this.label1.Text = "Host Adapter Name:";
- //
- // c_HostAdapterName
- //
- this.c_HostAdapterName.Location = new System.Drawing.Point(10, 26);
- this.c_HostAdapterName.Name = "c_HostAdapterName";
- this.c_HostAdapterName.ReadOnly = true;
- this.c_HostAdapterName.Size = new System.Drawing.Size(124, 21);
- this.c_HostAdapterName.TabIndex = 1;
- //
- // c_HostAdapterNumber
- //
- this.c_HostAdapterNumber.Location = new System.Drawing.Point(10, 69);
- this.c_HostAdapterNumber.Name = "c_HostAdapterNumber";
- this.c_HostAdapterNumber.ReadOnly = true;
- this.c_HostAdapterNumber.Size = new System.Drawing.Size(57, 21);
- this.c_HostAdapterNumber.TabIndex = 9;
- //
- // label2
- //
- this.label2.Location = new System.Drawing.Point(10, 52);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(144, 17);
- this.label2.TabIndex = 8;
- this.label2.Text = "Host Adapter Number:";
- //
- // c_DeviceID
- //
- this.c_DeviceID.Location = new System.Drawing.Point(154, 26);
- this.c_DeviceID.Name = "c_DeviceID";
- this.c_DeviceID.ReadOnly = true;
- this.c_DeviceID.Size = new System.Drawing.Size(48, 21);
- this.c_DeviceID.TabIndex = 3;
- //
- // label3
- //
- this.label3.Location = new System.Drawing.Point(154, 9);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(67, 17);
- this.label3.TabIndex = 2;
- this.label3.Text = "Device ID:";
- //
- // c_DeviceType
- //
- this.c_DeviceType.Location = new System.Drawing.Point(154, 69);
- this.c_DeviceType.Name = "c_DeviceType";
- this.c_DeviceType.ReadOnly = true;
- this.c_DeviceType.Size = new System.Drawing.Size(144, 21);
- this.c_DeviceType.TabIndex = 11;
- //
- // label4
- //
- this.label4.Location = new System.Drawing.Point(154, 52);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(86, 17);
- this.label4.TabIndex = 10;
- this.label4.Text = "Device Type:";
- //
- // c_DriveLetter
- //
- this.c_DriveLetter.Location = new System.Drawing.Point(240, 26);
- this.c_DriveLetter.Name = "c_DriveLetter";
- this.c_DriveLetter.ReadOnly = true;
- this.c_DriveLetter.Size = new System.Drawing.Size(48, 21);
- this.c_DriveLetter.TabIndex = 5;
- //
- // label5
- //
- this.label5.Location = new System.Drawing.Point(240, 9);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(86, 17);
- this.label5.TabIndex = 4;
- this.label5.Text = "Drive Letter:";
- //
- // label6
- //
- this.label6.Location = new System.Drawing.Point(10, 95);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(105, 17);
- this.label6.TabIndex = 14;
- this.label6.Text = "Capabilities:";
- //
- // c_Capabilities
- //
- this.c_Capabilities.CheckBoxes = true;
- listViewItem1.StateImageIndex = 0;
- listViewItem1.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_ALLOWED;
- listViewItem2.StateImageIndex = 0;
- listViewItem2.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_DAO;
- listViewItem3.StateImageIndex = 0;
- listViewItem3.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_READ_CD_TEXT;
- listViewItem4.StateImageIndex = 0;
- listViewItem4.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_VARIABLE_PAUSES_IN_TAO;
- listViewItem5.StateImageIndex = 0;
- listViewItem5.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_DAO_WRITE_CD_TEXT;
- listViewItem6.StateImageIndex = 0;
- listViewItem6.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_IMAGE_RECORDER;
- listViewItem7.StateImageIndex = 0;
- listViewItem7.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_UNDETECTED;
- listViewItem8.StateImageIndex = 0;
- listViewItem8.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_IDE_BUS;
- listViewItem9.StateImageIndex = 0;
- listViewItem9.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_SCSI_BUS;
- listViewItem10.StateImageIndex = 0;
- listViewItem10.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_BUF_UNDERRUN_PROT;
- listViewItem11.StateImageIndex = 0;
- listViewItem11.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_ALLOW_CHANGE_BOOKTYPE;
- listViewItem12.StateImageIndex = 0;
- listViewItem12.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_DVDPLUSVR_SUPPORTED;
- listViewItem13.StateImageIndex = 0;
- listViewItem13.Tag = NEROLib.NERO_CAPABILITIES.NERO_CAP_DUALLAYER_DVD_SUPPORTED;
- this.c_Capabilities.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
- listViewItem1,
- listViewItem2,
- listViewItem3,
- listViewItem4,
- listViewItem5,
- listViewItem6,
- listViewItem7,
- listViewItem8,
- listViewItem9,
- listViewItem10,
- listViewItem11,
- listViewItem12,
- listViewItem13});
- this.c_Capabilities.Location = new System.Drawing.Point(10, 112);
- this.c_Capabilities.Name = "c_Capabilities";
- this.c_Capabilities.Size = new System.Drawing.Size(230, 164);
- this.c_Capabilities.TabIndex = 15;
- this.c_Capabilities.UseCompatibleStateImageBehavior = false;
- this.c_Capabilities.View = System.Windows.Forms.View.List;
- //
- // label7
- //
- this.label7.Location = new System.Drawing.Point(326, 9);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(144, 17);
- this.label7.TabIndex = 6;
- this.label7.Text = "Buffer Underrun Prot:";
- //
- // c_BufUnderrunProt
- //
- this.c_BufUnderrunProt.Location = new System.Drawing.Point(326, 26);
- this.c_BufUnderrunProt.Name = "c_BufUnderrunProt";
- this.c_BufUnderrunProt.ReadOnly = true;
- this.c_BufUnderrunProt.Size = new System.Drawing.Size(144, 21);
- this.c_BufUnderrunProt.TabIndex = 7;
- //
- // label8
- //
- this.label8.Location = new System.Drawing.Point(19, 293);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(106, 17);
- this.label8.TabIndex = 21;
- this.label8.Text = "媒体支持:";
- //
- // c_MediaSupport
- //
- this.c_MediaSupport.Location = new System.Drawing.Point(19, 310);
- this.c_MediaSupport.Name = "c_MediaSupport";
- this.c_MediaSupport.ReadOnly = true;
- this.c_MediaSupport.Size = new System.Drawing.Size(346, 21);
- this.c_MediaSupport.TabIndex = 22;
- //
- // label9
- //
- this.label9.Location = new System.Drawing.Point(250, 112);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(144, 17);
- this.label9.TabIndex = 16;
- this.label9.Text = "媒体阅读支持:";
- //
- // c_MediaReadSupport
- //
- this.c_MediaReadSupport.Location = new System.Drawing.Point(250, 129);
- this.c_MediaReadSupport.Name = "c_MediaReadSupport";
- this.c_MediaReadSupport.ReadOnly = true;
- this.c_MediaReadSupport.Size = new System.Drawing.Size(220, 21);
- this.c_MediaReadSupport.TabIndex = 17;
- //
- // label10
- //
- this.label10.Location = new System.Drawing.Point(326, 52);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(154, 17);
- this.label10.TabIndex = 12;
- this.label10.Text = "Mandatory BUP Speed:";
- //
- // c_MandatoryBUPSpeed
- //
- this.c_MandatoryBUPSpeed.Location = new System.Drawing.Point(326, 69);
- this.c_MandatoryBUPSpeed.Name = "c_MandatoryBUPSpeed";
- this.c_MandatoryBUPSpeed.ReadOnly = true;
- this.c_MandatoryBUPSpeed.Size = new System.Drawing.Size(144, 21);
- this.c_MandatoryBUPSpeed.TabIndex = 13;
- //
- // c_SupportedAccessModes
- //
- this.c_SupportedAccessModes.CheckBoxes = true;
- listViewItem14.StateImageIndex = 0;
- listViewItem14.Tag = NEROLib.AccessMode.eNoWriting;
- listViewItem15.StateImageIndex = 0;
- listViewItem15.Tag = NEROLib.AccessMode.ePacketWriting;
- listViewItem16.StateImageIndex = 0;
- listViewItem16.Tag = NEROLib.AccessMode.eManagedMRW;
- listViewItem17.StateImageIndex = 0;
- listViewItem17.Tag = NEROLib.AccessMode.eRawMRW;
- this.c_SupportedAccessModes.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
- listViewItem14,
- listViewItem15,
- listViewItem16,
- listViewItem17});
- this.c_SupportedAccessModes.Location = new System.Drawing.Point(250, 172);
- this.c_SupportedAccessModes.Name = "c_SupportedAccessModes";
- this.c_SupportedAccessModes.Size = new System.Drawing.Size(144, 104);
- this.c_SupportedAccessModes.TabIndex = 19;
- this.c_SupportedAccessModes.UseCompatibleStateImageBehavior = false;
- this.c_SupportedAccessModes.View = System.Windows.Forms.View.List;
- //
- // label11
- //
- this.label11.Location = new System.Drawing.Point(250, 155);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(163, 17);
- this.label11.TabIndex = 18;
- this.label11.Text = "支持的接入方式:";
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.c_ChooseMedia);
- this.groupBox1.Controls.Add(this.c_ReadSpeeds);
- this.groupBox1.Controls.Add(this.c_WriteSpeeds);
- this.groupBox1.Controls.Add(this.label12);
- this.groupBox1.Controls.Add(this.label13);
- this.groupBox1.Location = new System.Drawing.Point(10, 276);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(364, 112);
- this.groupBox1.TabIndex = 20;
- this.groupBox1.TabStop = false;
- //
- // c_ChooseMedia
- //
- this.c_ChooseMedia.Location = new System.Drawing.Point(240, 78);
- this.c_ChooseMedia.Name = "c_ChooseMedia";
- this.c_ChooseMedia.Size = new System.Drawing.Size(115, 24);
- this.c_ChooseMedia.TabIndex = 4;
- this.c_ChooseMedia.Text = "Choose Media";
- this.c_ChooseMedia.Click += new System.EventHandler(this.c_ChooseMedia_Click);
- //
- // label12
- //
- this.label12.Location = new System.Drawing.Point(10, 60);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(105, 18);
- this.label12.TabIndex = 0;
- this.label12.Text = "Read Speeds:";
- //
- // label13
- //
- this.label13.Location = new System.Drawing.Point(125, 60);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(96, 18);
- this.label13.TabIndex = 2;
- this.label13.Text = "Write Speeds:";
- //
- // c_ReadSpeeds
- //
- this.c_ReadSpeeds.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.c_ReadSpeeds.Location = new System.Drawing.Point(10, 78);
- this.c_ReadSpeeds.Name = "c_ReadSpeeds";
- this.c_ReadSpeeds.Size = new System.Drawing.Size(105, 20);
- this.c_ReadSpeeds.TabIndex = 1;
- //
- // c_WriteSpeeds
- //
- this.c_WriteSpeeds.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.c_WriteSpeeds.Location = new System.Drawing.Point(125, 78);
- this.c_WriteSpeeds.Name = "c_WriteSpeeds";
- this.c_WriteSpeeds.Size = new System.Drawing.Size(105, 20);
- this.c_WriteSpeeds.TabIndex = 3;
- //
- // DriveInfoForm
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.CancelButton = this.c_Close;
- this.ClientSize = new System.Drawing.Size(517, 423);
- this.Controls.Add(this.c_SupportedAccessModes);
- this.Controls.Add(this.c_Capabilities);
- this.Controls.Add(this.c_HostAdapterName);
- this.Controls.Add(this.c_HostAdapterNumber);
- this.Controls.Add(this.c_DeviceID);
- this.Controls.Add(this.c_DeviceType);
- this.Controls.Add(this.c_DriveLetter);
- this.Controls.Add(this.c_BufUnderrunProt);
- this.Controls.Add(this.c_MediaSupport);
- this.Controls.Add(this.c_MediaReadSupport);
- this.Controls.Add(this.c_MandatoryBUPSpeed);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.c_Close);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.label9);
- this.Controls.Add(this.label10);
- this.Controls.Add(this.label11);
- this.Controls.Add(this.groupBox1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "DriveInfoForm";
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "DriveInfo";
- this.groupBox1.ResumeLayout(false);
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- #endregion
- protected override void OnLoad(EventArgs e)
- {
- base.OnLoad (e);
- // On form load fill all the controls with the information
- // about the drive.
- //
- c_DeviceID.Text = m_drive.DeviceID.ToString ();
- switch (m_drive.DevType)
- {
- case NERO_SCSI_DEVTYPE.NERO_SCSI_DEVTYPE_WORM:
- c_DeviceType.Text = "Worm";
- break;
- case NERO_SCSI_DEVTYPE.NERO_SCSI_DEVTYPE_CDROM:
- c_DeviceType.Text = "CDROM";
- break;
- case NERO_SCSI_DEVTYPE.NERO_SCSI_DEVTYPE_UNSUPPORTED_WORM:
- c_DeviceType.Text = "Unsupported Worm";
- break;
- default:
- c_DeviceType.Text = "Unknown";
- break;
- }
- c_DriveLetter.Text = m_drive.DriveLetter.ToUpper ().ToString ();
- c_HostAdapterName.Text = m_drive.HostAdapterName;
- c_HostAdapterNumber.Text = m_drive.HostAdapterNo.ToString ();
- c_MandatoryBUPSpeed.Text = m_drive.MandatoryBUPSpeed.ToString ();
- // Fill in the capabilities list view.
- //
- foreach (ListViewItem lvi in c_Capabilities.Items)
- {
- lvi.Checked = 0 != (m_drive.Capabilities & (NERO_CAPABILITIES) lvi.Tag);
- }
- c_BufUnderrunProt.Text = m_drive.BufUnderrunProtName;
- c_MediaSupport.Text = m_nero.get_TypeNameOfMedia ((NERO_MEDIA_TYPE) m_drive.MediaSupport);
- c_MediaReadSupport.Text = m_nero.get_TypeNameOfMedia (m_drive.MediaReadSupport);
- // Fill in the supported access modes list view.
- //
- foreach (ListViewItem lvi in c_SupportedAccessModes.Items)
- {
- lvi.Checked = 0 != (m_drive.SupportedAccessModes & (int) (AccessMode) lvi.Tag);
- }
- UpdateSpeeds ();
- }
- private void UpdateSpeeds ()
- {
- // Update the read and write speeds. These are dependant on the
- // chosen media.
- //
- c_ReadSpeeds.Populate (m_drive.get_AvailableSpeeds (NERO_ACCESSTYPE.NERO_ACCESSTYPE_READ, m_frmChooseMedia.GetMediaType ()));
- c_WriteSpeeds.Populate (m_drive.get_AvailableSpeeds (NERO_ACCESSTYPE.NERO_ACCESSTYPE_WRITE, m_frmChooseMedia.GetMediaType ()));
- }
- private void c_ChooseMedia_Click(object sender, System.EventArgs e)
- {
- if (DialogResult.OK == m_frmChooseMedia.ShowDialog (this))
- {
- UpdateSpeeds ();
- }
- }
- }
- }
|