private void SetWatcherAndStuff() { if (!_logdir.Exists) { _logdir.Create(); } if (!_profdir.Exists) { _profdir.Create(); } var init = new BackgroundWorker(); init.DoWork += (sender, args) => { var stat = new ServerStatus(); stat.Query(); }; init.RunWorkerAsync(); _fileSystemWatcher.Path = _logdir.FullName; _fileSystemWatcher.Created += FileSystemWatcherOnCreated; _fileSystemWatcher.EnableRaisingEvents = true; UpdateStatus(); }