Ejemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && !this.IsDisposed)
     {
         try
         {
             if (this.solutionWatcher != null)
             {
                 this.solutionWatcher.DisableWatchingForChanges();
             }
             this.Services.ProjectManager().ItemSelectionSet.Clear();
             this.CloseAllProjects();
         }
         finally
         {
             if (this.solutionWatcher != null)
             {
                 this.solutionWatcher.Dispose();
                 this.solutionWatcher = null;
             }
         }
         this.projects = null;
         this.disposed = true;
     }
 }
Ejemplo n.º 2
0
 void Microsoft.Expression.Project.IFileWatcher.Reactivate()
 {
     Microsoft.Expression.Project.SolutionWatcher solutionWatcher = this.SolutionWatcher;
     if (solutionWatcher != null)
     {
         solutionWatcher.CheckForChangesAndReenable();
     }
 }
Ejemplo n.º 3
0
        public bool Load()
        {
            bool flag;

            PerformanceUtility.StartPerformanceSequence(PerformanceEvent.SolutionLoad);
            try
            {
                Microsoft.Expression.Project.SolutionWatcher solutionWatcher = this.SolutionWatcher;
                flag = this.LoadInternal();
            }
            finally
            {
                PerformanceUtility.EndPerformanceSequence(PerformanceEvent.SolutionLoad);
            }
            return(flag);
        }