コード例 #1
0
        private void RestartMonitor()
        {
            if (mm != null)
            {
                mm.Dispose();
            }

            mm             = new MonitorManager(config);
            mm.FileChange += mm_FileChange;
            int NumFolders = config.GetItems().Count((f) => f.Active);

            ni.ShowBalloonTip(5000, "BASeCamp Folder Monitor Started", "Monitoring " + NumFolders + " Folders.", ToolTipIcon.Info);
        }
コード例 #2
0
 public MonitorManager(MonitorConfiguration mc)
 {
     foreach (var iterate in mc.GetItems())
     {
         FolderMonitor fm = new FolderMonitor(iterate.MonitorPath, iterate.Filter);
         fm.FileEvent += fm_FileEvent;
         fm.Start();
     }
 }