protected virtual void OnProjectRemoved(NamedProjectEventArgs e) { IProject namedProject = e.NamedProject as IProject; if (namedProject != null) { namedProject.ProjectChanged -= new EventHandler <ProjectEventArgs>(this.Project_ProjectChanged); } }
private void OnAnyProjectOpened(NamedProjectEventArgs e) { if (this.AnyProjectOpened != null) { this.AnyProjectOpened(this, e); } IProject namedProject = e.NamedProject as IProject; if (namedProject != null) { this.OnProjectOpened(new ProjectEventArgs(namedProject)); } }