Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/15/13 14:28:53 (11 years ago)
Author:
mkommend
Message:

#2081: Removed the code for clearing the properties of the filesystemwatcher in the TextFileView as this could lead to exceptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs

    r9697 r9705  
    8787        fileValueView.Content = null;
    8888        textBox.Text = string.Empty;
    89         fileSystemWatcher.Filter = null;
    90         fileSystemWatcher.Path = null;
     89        //mkommend: other properties of the file system watcher cannot be cleared (e.g., path) as this leads to an ArgumentException
     90        fileSystemWatcher.EnableRaisingEvents = false;
    9191        return;
    9292      }
Note: See TracChangeset for help on using the changeset viewer.