public void BeenDeleted() { if (watcher != null) { watcher.EnableRaisingEvents = false; watcher.Dispose(); watcher = null; } dir = null; if (parent != null) // should never be the case anyway? { parent.RefreshIcons(); } }