using System; using System.IO; using System.Collections.Generic; using System.Text; namespace Elearning { public class Address { private string _Drive; public static string _PDFPath = Environment.CurrentDirectory + @"\PDF\"; private string _MPPath; private string _ARPath; public System.Collections.ArrayList CDList = new System.Collections.ArrayList(); public Address() { char str = 'C'; for (int i = 0; i < 20; i++) { FindCDROM(str.ToString()); str++; } } private void FindCDROM(string str) { DriveInfo DI = new DriveInfo(str.ToString()); if (DI.DriveType == DriveType.CDRom) CDList.Add(DI.Name); } public string Drive { get { return _Drive; } set { _Drive = value; } } public string MpPath { get { return _MPPath; } set { _MPPath = value; } } public string PDFPath { get { return _PDFPath; } set { _PDFPath = value; } } public string ARPath { get { return _ARPath; } set { _ARPath = value; } } } }