public ProgramWatcher(TrayIcon icon) { _targetProcessStates = new Dictionary <string, bool>(); _watcherThread = new Thread(ProgramWatcherThread); _iconRef = icon; _shouldShutdown = false; _watcherThread.Start(); }
private SideSaver() { instance = this; Items = new BindingList <string>(); _fileHandlers = new Dictionary <int, FileBackupHandler>(); _settings = new PersistentUserSettings(); _icon = new TrayIcon(this); _watcher = new ProgramWatcher(_icon); CommitNewSettings(_settings); Execute(); Cleanup(); _settings.SaveToDisk(); }