예제 #1
0
 void templates_FileAdded(object sender, TemplateTagActionArgs e)
 {
     if (FileAdded != null)
     {
         if (e.Filename.StartsWith("p:\\"))
         {
             FileAdded(this, new LibraryFileActionArgs(e.Filename.Replace("p:\\", "")));
         }
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 private void templates_FileAdded(object sender, TemplateTagActionArgs e)
 {
     OnDirty();
 }
예제 #4
0
 void templates_FileRemoved(object sender, TemplateTagActionArgs e)
 {
     OnDirty();
 }