public void InsertDrive(char name, bool wipeFreeSpace, bool wipeClusterTips, bool wipeMft)
{
if(_logger != null && _testMode) {
_logger.LogMethodCall(name, wipeFreeSpace, wipeClusterTips, wipeMft);
}
if(_session == null || _afterWipe) {
return;
}
DriveWipeObject drive = new DriveWipeObject();
drive.AddDrive(name);
drive.WipeMethodId = WipeOptions.DefaultWipeMethod;
drive.WipeFreeSpace = wipeFreeSpace;
drive.WipeClusterTips = wipeClusterTips;
drive.WipeMFT = wipeMft;
// add to the list
_session.BridgeItems.Add(drive);
// report to session
if(reportActions) {
ActionErrorReporter.ReportError(_session, _afterWipe, ErrorSeverity.Low,
DriveInsertOperation, name);
}
}