예제 #1
0
        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);
            }
              }
        }
예제 #2
0
        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);
                }
            }
        }