예제 #1
0
        /// <summary>
        /// The get unique ui name of project.
        /// </summary>
        /// <param name="pHierarchy">
        /// The p hierarchy.
        /// </param>
        /// <param name="pbstrUniqueName">
        /// The pbstr unique name.
        /// </param>
        /// <returns>
        /// The get unique ui name of project.
        /// </returns>
        public int GetUniqueUINameOfProject(IVsHierarchy pHierarchy, out string pbstrUniqueName)
        {
            MockIVsProject project = pHierarchy as MockIVsProject;

            pbstrUniqueName = "Unique name of " + project.FullPath;
            return(VSConstants.S_OK);
        }
예제 #2
0
 /// <summary>
 /// The add project.
 /// </summary>
 /// <param name="project">
 /// The project.
 /// </param>
 public void AddProject(MockIVsProject project)
 {
     this._projects.Add(project);
     foreach (IVsSolutionEvents sink in this._eventSinks)
     {
         if (sink != null)
         {
             sink.OnAfterOpenProject(project, 1);
         }
     }
 }
예제 #3
0
 /// <summary>
 /// The add project.
 /// </summary>
 /// <param name="project">
 /// The project.
 /// </param>
 public void AddProject(MockIVsProject project)
 {
     this._projects.Add(project);
     foreach (IVsSolutionEvents sink in this._eventSinks)
     {
         if (sink != null)
         {
             sink.OnAfterOpenProject(project, 1);
         }
     }
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MockDTEProject"/> class.
 /// </summary>
 /// <param name="project">
 /// The project.
 /// </param>
 public MockDTEProject(MockIVsProject project)
 {
     this._project = project;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MockDTEProject"/> class.
 /// </summary>
 /// <param name="project">
 /// The project.
 /// </param>
 public MockDTEProject(MockIVsProject project)
 {
     this._project = project;
 }