void templates_FileAdded(object sender, TemplateTagActionArgs e) { if (FileAdded != null) { if (e.Filename.StartsWith("p:\\")) { FileAdded(this, new LibraryFileActionArgs(e.Filename.Replace("p:\\", ""))); } } }
void Templates_FileAdded(object sender, TemplateTagActionArgs e) { TagPath path = new TagPath(e.Filename); NodeInfo info; if (path.Location == TagLocation.Project) { info = new NodeInfo(GetNodeType <ProjectTemplateTagNodeType>(), path.ToPath(PathFormat.ExplicitLocation)); } else { info = new NodeInfo(GetNodeType <GlobalTemplateTagNodeType>(), path.ToPath(PathFormat.Relative)); } info.Tag = e.TemplateElement; OnItemAdded(info); }
private void templates_FileAdded(object sender, TemplateTagActionArgs e) { OnDirty(); }
void templates_FileRemoved(object sender, TemplateTagActionArgs e) { OnDirty(); }