Beispiel #1
0
        private void Main_Form_FormClosing(object sender, FormClosingEventArgs e)
        {
            _synFiles.CloseConnect();

            foreach (CFileWatcher item in _lsFileWatches)
            {
                item.Stop();
            }

            isExit = true;
            _dbFile.SaveLinuxDirs(lbx_linux_dirs);
            _dbFile.SaveTask(lvTask);
            Environment.Exit(0);
        }
Beispiel #2
0
 public void Stop()
 {
     _watcher.EnableRaisingEvents = false;
     _synFiles.CloseConnect();
 }