private void fileSystemWatcher_CreatedorDeleted(object sender, FileSystemEventArgs e)
{
if (e.ChangeType.HasFlag(WatcherChangeTypes.Deleted))
{
Script script = Project.ScriptManager.WithPath(e.FullPath);
if (script != null)
this._scripts.Remove(script);
}
else if (e.ChangeType.HasFlag(WatcherChangeTypes.Created))
{
Script script = Project.ScriptManager.WithPath(e.FullPath);
if (script == null)
this._scripts.Add(new Script(e.FullPath));
}
}