internal ConnectionHistory(Favorites favorites)
 {
     this.favorites = favorites;
     fileWatcher = new DataFileWatcher(FileLocations.HistoryFullFileName);
     fileWatcher.FileChanged += new EventHandler(this.OnFileChanged);
     fileWatcher.StartObservation();
     ThreadPool.QueueUserWorkItem(new WaitCallback(LoadHistory));
 }
 private void InitializeFileWatch()
 {
     fileWatcher = new DataFileWatcher(FileFullName);
     fileWatcher.FileChanged += new EventHandler(CredentialsFileChanged);
     fileWatcher.StartObservation();
 }
Exemplo n.º 3
0
 private void InitializeFileWatch()
 {
     this.fileWatcher              = new DataFileWatcher(this.FileFullName);
     this.fileWatcher.FileChanged += this.CredentialsFileChanged;
     this.fileWatcher.StartObservation();
 }
        private void InitializeFileWatcher()
        {
            if (fileWatcher != null)
                return;

            var newWatcher = new DataFileWatcher(fileLocations.Configuration);
            AssignNewFileWatch(newWatcher);
        }
Exemplo n.º 5
0
 private void InitializeFileWatch()
 {
     fileWatcher              = new DataFileWatcher(FileFullName);
     fileWatcher.FileChanged += new EventHandler(CredentialsFileChanged);
     fileWatcher.StartObservation();
 }