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)); }
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); }
private static void InitializeFileWatcher() { if (fileWatcher != null) { return; } fileWatcher = new DataFileWatcher(ConfigurationFileLocation); fileWatcher.FileChanged += ConfigFileChanged; }
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(); } }
private static void InitializeFileWatch() { fileWatcher = new DataFileWatcher(configFileLocation); fileWatcher.FileChanged += CredentialsFileChanged; fileWatcher.StartObservation(); }
private static void InitializeFileWatcher() { if (fileWatcher != null) return; fileWatcher = new DataFileWatcher(ConfigurationFileLocation); fileWatcher.FileChanged += ConfigFileChanged; }