1
Fork 0

Began development on function for scanning inserted drives

This commit is contained in:
Jake Howard 2014-07-22 23:24:20 +01:00
parent c893029596
commit 23b2fe177b

View file

@ -4,11 +4,22 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.IO; using System.IO;
using System.Timers;
namespace Saviour_Backup_System namespace Saviour_Backup_System
{ {
public class USBTools public class USBTools
{ {
public static void initDriveScan(){
Timer scanTimer = new Timer();
scanTimer.Elapsed += new ElapsedEventHandler(driveScanTick);
scanTimer.Interval = 5000;
scanTimer.Start();
}
private static void driveScanTick(object sender, ElapsedEventArgs e)
{
}
public static DriveInfo[] getConnectedDrives() public static DriveInfo[] getConnectedDrives()
{ {
List<DriveInfo> drivesList = new List<DriveInfo>(); List<DriveInfo> drivesList = new List<DriveInfo>();