示例#1
0
        public static Range GetDriveTemperatureRange(string model, string rangeName)
        {
            DrivelistEntry drivelistEntry = Drivelist.GetInstance().Match(model);

            if (drivelistEntry != null && ItemProfiles.GetInstance() != null)
            {
                return(ItemProfiles.GetInstance().GetRange(drivelistEntry.Profile, rangeName));
            }
            return(null);
        }
示例#2
0
        public static string Dump()
        {
            string str  = "";
            string text = "WDC WD2009FYPX-09AAMB0";
            Range  driveTemperatureRange = SystemConfig.GetDriveTemperatureRange(text, "Warning");

            if (driveTemperatureRange != null)
            {
                str += string.Format("Model={0} Warning Min={1} Max={2}", text, driveTemperatureRange.Min, driveTemperatureRange.Max);
            }
            else
            {
                str += string.Format("Cannot find drive model: {0}", text);
            }
            str += Environment.NewLine;
            str += Drivelist.GetInstance().Dump();
            str += DriveMap.GetInstance().Dump();
            str += EthernetPortProfiles.GetInstance().Dump();
            str += CpuList.GetInstance().Dump();
            str += SystemProfiles.GetInstance().Dump();
            str += ItemProfiles.GetInstance().Dump();
            return(str + ThermalProfiles.GetInstance().Dump());
        }
示例#3
0
 public static ItemProfiles GetItemProfiles()
 {
     return(ItemProfiles.GetInstance());
 }