示例#1
0
        private void watcher_Changed(object sender, FileSystemEventArgs e)
        {
            FileChange change = new FileChange();
            change.Filename = e.FullPath;
            change.Change = e.ChangeType;
            change.Time = DateTime.Now;

            //_changes.Add(change);
            _entryDispatcher.Invoke(DispatcherPriority.DataBind, _addChangeEvent, change);
        }
示例#2
0
        private void watcher_Renamed(object sender, RenamedEventArgs e)
        {
            FileChange change1 = new FileChange();
            change1.Filename = e.OldFullPath;
            change1.Change = e.ChangeType;
            change1.Time = DateTime.Now;

            //_changes.Add(change1);
            _entryDispatcher.Invoke(DispatcherPriority.DataBind, _addChangeEvent, change1);

            FileChange change2 = new FileChange();
            change2.Filename = e.FullPath;
            change2.Change = e.ChangeType;
            change2.Time = DateTime.Now;

            //_changes.Add(change2);
            _entryDispatcher.Invoke(DispatcherPriority.DataBind, _addChangeEvent, change2);
        }
示例#3
0
 private void AddChange(FileChange Change)
 {
     _changes.Add(Change);
 }