Changeset 11034 for trunk/sources/HeuristicLab.Data.Views/3.3/Path Views
- Timestamp:
- 06/23/14 17:01:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs
r9850 r11034 68 68 if (Content != null && Content.Exists()) { 69 69 fileSystemWatcher.Filter = Path.GetFileName(Content.Value); 70 fileSystemWatcher.Path = Path.GetDirectoryName(Content.Value); 70 var path = Path.GetDirectoryName(Content.Value); 71 if (string.IsNullOrEmpty(path)) path = Environment.CurrentDirectory; 72 fileSystemWatcher.Path = path; 71 73 } 72 74 fileSystemWatcher.EnableRaisingEvents = Content != null && File.Exists(Content.Value) && Visible;
Note: See TracChangeset
for help on using the changeset viewer.