private void Monitor_Load(object sender, EventArgs e) { InitializeCountersFromSettings(); // Automate refresh timer1.Interval = RefreshMilliSecondsInterval; timer1.Start(); timer1_Tick(null, null); // Activate physical disk change detection driveDetector = new Dolinay.DriveDetector(); driveDetector.DeviceArrived += new Dolinay.DriveDetectorEventHandler(driveDetector_DeviceArrived); driveDetector.DeviceRemoved += new Dolinay.DriveDetectorEventHandler(driveDetector_DeviceRemoved); }
private void Monitor_Load(object sender, EventArgs e) { InitializeCountersFromSettings(); // Automate refresh timer1.Interval = RefreshMilliSecondsInterval; timer1.Start(); timer1_Tick(null, null); // Activate physical disk change detection driveDetector = new Dolinay.DriveDetector(); driveDetector.DeviceArrived += new Dolinay.DriveDetectorEventHandler(driveDetector_DeviceArrived); driveDetector.DeviceRemoved += new Dolinay.DriveDetectorEventHandler(driveDetector_DeviceRemoved); }