Пример #1
0
 private void SetStatusToAllDrives()
 {
     driveIndex      = 0;
     queryCollection = connectionService.GetQueryCollectionFromDiskDrive("MSStorageDriver_FailurePredictStatus");
     foreach (ManagementObject foundDrive in queryCollection)
     {
         if ((bool)foundDrive.Properties["PredictFailure"].Value == false)
         {
             allDrivesDictionary[driveIndex].IsOK = true;
         }
         else
         {
             allDrivesDictionary[driveIndex].IsOK = false;
         }
         driveIndex++;
     }
 }