I have written a filesystemwatcher app. It allows the user to choose which directory to monitor and whether to include sub directories etc. It also has a series of check boxes which specify which notifyfilters to check such as NotifyFilters.Size
Based on which check boxes are checked it generates a string like string notifyString = "NotifyFilters.Size | NotifyFilters.Attributes".
I then want to say fileSystemWatcher1.NotifyFilter = notifyString;
But it wont accept the conversion from string to notifyfilter and I cannot see any way of parsing or converting.
Is there any way to dynamically allow the user to change the notifyfilter of the filesystemwatcher?
View Complete Post