Ejemplo n.º 1
0
        public override string GetTypedValue(IStudyItem item)
        {
            DriveInfo drive = DriveColumn.GetDriveInfo(item);

            if (drive != null)
            {
                switch (drive.DriveType)
                {
                case DriveType.Removable:
                    return(SR.RemovableMedia);

                case DriveType.Fixed:
                    return(SR.FixedMedia);

                case DriveType.Network:
                    return(SR.NetworkMedia);

                case DriveType.CDRom:
                    return(SR.CDRomMedia);

                case DriveType.Ram:
                    return(SR.RAM);
                }
            }
            return(SR.Unknown);
        }
        public override string GetTypedValue(IStudyItem item)
        {
            DriveInfo drive = DriveColumn.GetDriveInfo(item);

            if (drive == null)
            {
                return(string.Empty);
            }
            return(drive.DriveFormat);
        }