public MusicShareWatcher() { InitializeComponent(); Thread.CurrentThread.Name = "MusicShareWatcherApp"; bMonitoring = true; // Setup the Watching watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); }
public void Start() { using (Settings xmlreader = new MPSettings()) { _monitor = xmlreader.GetValueAsBool("musicfiles", "monitorShares", false); } if (_monitor) { Log.Info("MusicShareWatcher Plugin {0} starting.", _version); watcher = new MusicShareWatcherHelper(); watcher.SetMonitoring(true); watcher.StartMonitor(); Log.Info("MusicShareWatcher Plugin now monitoring the shares."); } }