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); }
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()); }
public static ItemProfiles GetItemProfiles() { return(ItemProfiles.GetInstance()); }