Implemented Queues and folder monitors.

This commit is contained in:
Patrick Fic
2020-01-17 10:01:06 -08:00
parent 2b3d9ac76b
commit 572f409176
13 changed files with 388 additions and 41 deletions

View File

@@ -70,5 +70,37 @@ namespace BodyshopUploader.ViewModels
return _removeMonitoringPathCommand;
}
}
private ICommand _startFolderMonitorsCommand;
public ICommand StartFolderMonitorsCommand
{
get
{
if (_startFolderMonitorsCommand == null)
{
_startFolderMonitorsCommand = new RelayCommand(
p => MonitoringPaths.Count > 0,
p => StartAllFolderMonitors()
);
}
return _startFolderMonitorsCommand;
}
}
private ICommand _stopFolderMonitorsCommand;
public ICommand StopFolderMonitorsCommand
{
get
{
if (_stopFolderMonitorsCommand == null)
{
_stopFolderMonitorsCommand = new RelayCommand(
p => FolderMonitors.Count > 0,
p => StopAllFolderMonitors()
);
}
return _stopFolderMonitorsCommand;
}
}
}
}