// 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); } } } }
private void OnProjectChanged(IVsSolution solution, IVsProject project, ProjectChangeType changeType) { var localEvent = ProjectChanged; if (localEvent != null) { localEvent(this, new ProjectChangedEventArgs(solution, project, changeType)); } }
public ProjectEventArgs( ProjectChangeType type, string configName ) { this.type = type; this.configName = configName; }
// 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; }
public CrcsProjectEventArgs(ProjectChangeType changeType, string fileSystemPath) { ChangeType = changeType; FileSystemPath = fileSystemPath; }
/// <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; }