Beispiel #1
0
        public ProgramWatcher(TrayIcon icon)
        {
            _targetProcessStates = new Dictionary <string, bool>();
            _watcherThread       = new Thread(ProgramWatcherThread);
            _iconRef             = icon;

            _shouldShutdown = false;
            _watcherThread.Start();
        }
Beispiel #2
0
        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();
        }