Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 internal ConnectionHistory(Favorites favorites)
 {
     this.favorites                = favorites;
     this.fileWatcher              = new DataFileWatcher(FileLocations.HistoryFullFileName);
     this.fileWatcher.FileChanged += this.OnFileChanged;
     this.fileWatcher.StartObservation();
     ThreadPool.QueueUserWorkItem(this.LoadHistory);
 }
Exemplo n.º 3
0
        private static void InitializeFileWatcher()
        {
            if (fileWatcher != null)
            {
                return;
            }

            fileWatcher              = new DataFileWatcher(ConfigurationFileLocation);
            fileWatcher.FileChanged += ConfigFileChanged;
        }
Exemplo n.º 4
0
 private ConnectionHistory()
 {
     // This prevents SharpDevelop and Visual Studio from both an exception in design mode for controls using this HistoryTreeView and from crashing when opening the
     // designer for this class.
     if (LicenseManager.UsageMode == LicenseUsageMode.Runtime)
     {
         string fullHistoryFullName = Path.Combine(AssemblyInfo.DirectoryConfigFiles, FILENAME);
         this.fileWatcher              = new DataFileWatcher(fullHistoryFullName);
         this.fileWatcher.FileChanged += this.OnFileChanged;
         this.fileWatcher.StartObservation();
     }
 }
Exemplo n.º 5
0
 private ConnectionHistory()
 {
     // This prevents SharpDevelop and Visual Studio from both an exception in design mode for controls using this HistoryTreeView and from crashing when opening the
     // designer for this class.
     if (LicenseManager.UsageMode == LicenseUsageMode.Runtime)
     {
         string fullHistoryFullName = Path.Combine(AssemblyInfo.DirectoryConfigFiles, FILENAME);
         this.fileWatcher = new DataFileWatcher(fullHistoryFullName);
         this.fileWatcher.FileChanged += this.OnFileChanged;
         this.fileWatcher.StartObservation();
     }
 }
Exemplo n.º 6
0
 private static void InitializeFileWatch()
 {
     fileWatcher = new DataFileWatcher(configFileLocation);
     fileWatcher.FileChanged += CredentialsFileChanged;
     fileWatcher.StartObservation();
 }
Exemplo n.º 7
0
 private static void InitializeFileWatch()
 {
     fileWatcher              = new DataFileWatcher(configFileLocation);
     fileWatcher.FileChanged += CredentialsFileChanged;
     fileWatcher.StartObservation();
 }
Exemplo n.º 8
0
        private static void InitializeFileWatcher()
        {
            if (fileWatcher != null)
                return;

            fileWatcher = new DataFileWatcher(ConfigurationFileLocation);
            fileWatcher.FileChanged += ConfigFileChanged;
        }