コード例 #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();
 }