private void simpleButtonScanMntTool_Click(object sender, EventArgs e) { OMLEngine.FileSystem.MountingTool mnt = new OMLEngine.FileSystem.MountingTool(); teMntToolPath.Text = mnt.ScanForMountTool((OMLEngine.FileSystem.MountingTool.Tool)Enum.Parse(typeof(OMLEngine.FileSystem.MountingTool.Tool), rgMountingTool.Text), cmbMntToolScan.Text); if (teMntToolPath.Text == "") { XtraMessageBox.Show("Cannot find the selected image mounting tool!"); } }
private void MountImage(string name, string path) { FileSystem.MountingTool mt = new FileSystem.MountingTool(); string drive; mt.Mount(path, out drive); drive = drive + ":"; if (FileSystem.FileScanner.IsDVD(drive)) { IdentifyMediaType(name, drive, VideoFormat.DVD); } if (FileSystem.FileScanner.IsHDDVD(drive)) { IdentifyMediaType(name, drive, VideoFormat.HDDVD); } if (FileSystem.FileScanner.IsBluRay(drive)) { IdentifyMediaType(name, drive, VideoFormat.BLURAY); } }
private void simpleButtonScanMntTool_Click(object sender, EventArgs e) { OMLEngine.FileSystem.MountingTool mnt = new OMLEngine.FileSystem.MountingTool(); teMntToolPath.Text = mnt.ScanForMountTool((OMLEngine.FileSystem.MountingTool.Tool)Enum.Parse(typeof(OMLEngine.FileSystem.MountingTool.Tool), rgMountingTool.Text), cmbMntToolScan.Text); if (teMntToolPath.Text == "") XtraMessageBox.Show("Cannot find the selected image mounting tool!"); }