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; } }
void Microsoft.Expression.Project.IFileWatcher.Reactivate() { Microsoft.Expression.Project.SolutionWatcher solutionWatcher = this.SolutionWatcher; if (solutionWatcher != null) { solutionWatcher.CheckForChangesAndReenable(); } }
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); }