Пример #1
0
 /// <summary>
 /// Sets the state of the file (include in profiling or not) and
 /// makes the build of the project invalid.
 /// Raises a BlocksMerged-Event
 /// </summary>
 /// <param name="file">source file</param>
 /// <param name="value">true, if file should be included in profiling</param>
 public static void SetProfile(SourceFile file, bool value)
 {
     if (currentSolution != null)
     {
         file.SetProfile(value);
         currentSolution.GetProjectForFile(file.FileName).BuildExists = false;
         Changed(ProfItAction.BlocksMerged, file);
     }
 }