public void HandleDriveChange(DriveChangeEvent dce) { }
private void USBInserted(object sender, EventArrivedEventArgs e) { IMonitorControllerInterface control = ServiceLocator.MonitorI; List<DriveInfo> newConnectedDrives = RetrieveAllDrives(); int i = 0; foreach (DriveInfo drive in newConnectedDrives) { if (drive.Name.Equals(connectedDrives[i].Name)) { i++; } else { DriveChangeEvent dce = new DriveChangeEvent(Syncless.Monitor.DriveChangeType.DRIVE_IN,drive); control.HandleDriveChange(dce); } } connectedDrives = newConnectedDrives; }