BetterExplorer.MountIso.PopulateDriveLetterDropDown C# (CSharp) Method

PopulateDriveLetterDropDown() private method

private PopulateDriveLetterDropDown ( ) : void
return void
        private void PopulateDriveLetterDropDown()
        {
            char[] allchars = new char[] { 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z' };
            List<char> toremove = new List<char>();

            foreach (DriveInfo item in DriveInfo.GetDrives())
            {
                toremove.Add(GetDriveLetterFromDrivePath(item.RootDirectory.FullName));
            }

            foreach (char item in allchars)
            {
                if (!toremove.Contains(item))
                {
                    cbbLetter.Items.Add(item);
                }
            }

            cbbLetter.SelectedIndex = 0;

        }