//		public int IndexOf( string name )
//		{
//			for( int index = 0; index < configs.Count; index++ )
//				if( configs[index].Name == name )
//					return index;
//
//			return -1;
//		}

        public void OnProjectChange(ProjectChangeType type, string configName)
        {
            isDirty = true;

            if (isAssemblyWrapper)
            {
                projectPath       = Path.ChangeExtension(projectPath, ".nunit");
                isAssemblyWrapper = false;
            }

            if (Changed != null)
            {
                Changed(this, new ProjectEventArgs(type, configName));
            }

            if (type == ProjectChangeType.RemoveConfig)
            {
                if (activeConfig == null || activeConfig.Name == configName)
                {
                    if (configs.Count > 0)
                    {
                        SetActiveConfig(0);
                    }
                }
            }
        }
Example #2
0
        private void OnProjectChanged(IVsSolution solution, IVsProject project, ProjectChangeType changeType)
        {
            var localEvent = ProjectChanged;

            if (localEvent != null)
            {
                localEvent(this, new ProjectChangedEventArgs(solution, project, changeType));
            }
        }
Example #3
0
 public ProjectEventArgs( ProjectChangeType type, string configName )
 {
     this.type = type;
     this.configName = configName;
 }
Example #4
0
        //        public int IndexOf( string name )
        //        {
        //            for( int index = 0; index < configs.Count; index++ )
        //                if( configs[index].Name == name )
        //                    return index;
        //
        //            return -1;
        //        }
        public void OnProjectChange( ProjectChangeType type, string configName )
        {
            isDirty = true;

            if ( isAssemblyWrapper )
            {
                projectPath = Path.ChangeExtension( projectPath, ".nunit" );
                isAssemblyWrapper = false;
            }

            if ( Changed != null )
                Changed( this, new ProjectEventArgs( type, configName ) );

            if ( type == ProjectChangeType.RemoveConfig )
            {
                if ( activeConfig == null || activeConfig.Name == configName )
                {
                    if ( configs.Count > 0 )
                        SetActiveConfig( 0 );
                }
            }
        }
 public ProjectEventArgs(ProjectChangeType type, string configName)
 {
     this.type       = type;
     this.configName = configName;
 }
Example #6
0
 public CrcsProjectEventArgs(ProjectChangeType changeType, string fileSystemPath)
 {
     ChangeType     = changeType;
     FileSystemPath = fileSystemPath;
 }
 public CrcsProjectEventArgs(ProjectChangeType changeType, string fileSystemPath)
 {
     ChangeType = changeType;
     FileSystemPath = fileSystemPath;
 }
Example #8
0
 /// <summary>
 /// Initializes new event args.
 /// </summary>
 /// <param name="solution">The parent solution</param>
 /// <param name="project">The project that changed</param>
 /// <param name="changeType">The type of change</param>
 public ProjectChangedEventArgs(IVsSolution solution, IVsProject project, ProjectChangeType changeType)
 {
     Solution   = solution;
     Project    = project;
     ChangeType = changeType;
 }