示例#1
0
 public void HandleDriveChange(DriveChangeEvent dce)
 {
     
 }
示例#2
0
 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;
 }