コード例 #1
0
        private void DocumentEvents_Closed(string document)
        {
            // Remove document from OrphanedFilesProject
            // So it can be opened in normal project afterwards
            // when possible
            XSolution.WriteOutputMessage("DocumentEvents_Closed " + document ?? "(none)");
            var xfile = XSolution.FindFile(document);

            if (xfile != null && xfile.Project.Name == OrphanedFilesProject.OrphanName)
            {
                XSolution.OrphanedFilesProject.RemoveFile(document);
            }
        }
コード例 #2
0
 private void SolutionEvents_OnAfterOpenProject(Community.VisualStudio.Toolkit.Project project)
 {
     XSolution.WriteOutputMessage("SolutionEvents_OnAfterOpenProject " + project.FullPath ?? "(none)");
     //if (project.IsXSharp())
     //{
     //var xProject = XSolution.FindProject(project.FullPath);
     //if (xProject != null)
     //{
     //    addProjectFiles(xProject, project);
     //    if (XSolution.IsOpen)
     //    {
     //        ModelWalker.AddProject(xProject);
     //        ModelWalker.Walk();
     //    }
     //}
     //}
 }
コード例 #3
0
 private void SolutionEvents_OnBeforeOpenProject(string obj)
 {
     XSolution.WriteOutputMessage("SolutionEvents_OnBeforeOpenProject " + obj ?? "(none)");
     checkProjectFile(obj);
 }
コード例 #4
0
 private void SolutionEvents_OnBeforeOpenSolution(string obj)
 {
     // we do not see this for the first solution that is opened
     // because we are usually not loaded then
     XSolution.WriteOutputMessage("SolutionEvents_OnBeforeOpenSolution " + obj ?? "(none)");
 }
コード例 #5
0
 private void DocumentEvents_Opened(string document)
 {
     XSolution.WriteOutputMessage("DocumentEvents_Opened " + document ?? "(none)");
 }