Example #1
0
        public string GetNameOfCurrentMedia(int index)
        {
            var discRecorder = devicesList[index];

            MsftDiscFormat2Data discFormatData = null;

            discFormatData = new MsftDiscFormat2Data();
            if (!discFormatData.IsCurrentMediaSupported(discRecorder))
            {
                return("Media not supported!");
            }
            else
            {
                discFormatData.Recorder = discRecorder;
                IMAPI_MEDIA_PHYSICAL_TYPE mediaType = discFormatData.CurrentPhysicalMediaType;
                return(DevicesManager.GetMediaTypeString(mediaType));
            }
        }
 private void devicesComboBox_Format(object sender, ListControlConvertEventArgs e)
 {
     e.Value = DevicesManager.GetDevicePath((IDiscRecorder2)e.ListItem);
 }
 public MainForm()
 {
     InitializeComponent();
     devicesManger = new DevicesManager();
     filesManager  = new FileManager(backgroundBurnWorker);
 }