private void UIFileSystemSelect_SelectedIndexChanged(System.Object sender, System.EventArgs e)
    {
        fileSystem = FileSystemFactory.MakeFileSystem((string)UIFileSystemSelect.SelectedItem, disk);
        try
        {
            fileSystem.Attach();

            var errors = fileSystem.IsDiskValid();
            if (errors != 0)
            {
                MessageBox.Show("WARNING: This disk image has one or more errors. Making any changes to the files on this disk may lead to un-expected results.", "Disk Has Errors", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             
           
            }

            if ((errors & FileSystem.Error.Directory) > 0)
                UIDirectoryError.BackColor = System.Drawing.Color.Red;
            else
                UIDirectoryError.BackColor = System.Drawing.Color.LightGreen;

            if ((errors & FileSystem.Error.File) > 0)              
                UIFileErrors.BackColor = System.Drawing.Color.Red;
            else
                UIFileErrors.BackColor = System.Drawing.Color.LightGreen;
           
            if ((errors & FileSystem.Error.SectorMap) > 0)
                UISectorMapErrors.BackColor = System.Drawing.Color.Red;
            else
                UISectorMapErrors.BackColor = System.Drawing.Color.LightGreen;


        }
        catch (Exception ex)
        {
            MessageBox.Show("Could not attach file system. " + ex.Message);
            UIFileSystemSelect.SelectedItem = "None";
        }
        UpdateList();
        UpdateMenuItems();
    }