public HarddriveGroup(ISettings settings) { int p = (int)Environment.OSVersion.Platform; if (p == 4 || p == 128) return; ISmart smart = new WindowsSmart(); for (int drive = 0; drive < MAX_DRIVES; drive++) { AbstractHarddrive instance = AbstractHarddrive.CreateInstance(smart, drive, settings); if (instance != null) { this.hardware.Add(instance); } } }
public HarddriveGroup(ISettings settings) { int p = (int)Environment.OSVersion.Platform; if (p == 4 || p == 128) { return; } ISmart smart = new WindowsSmart(); for (int drive = 0; drive < MAX_DRIVES; drive++) { AbstractHarddrive instance = AbstractHarddrive.CreateInstance(smart, drive, settings); if (instance != null) { this.hardware.Add(instance); } } }