Ejemplo n.º 1
0
        protected virtual void OnProjectRemoved(NamedProjectEventArgs e)
        {
            IProject namedProject = e.NamedProject as IProject;

            if (namedProject != null)
            {
                namedProject.ProjectChanged -= new EventHandler <ProjectEventArgs>(this.Project_ProjectChanged);
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }