示例#1
0
 private void AnalyzeErrorItems(CompilerErrors errors)
 {
     ErrorList list = MasterObjekt.ToolWindows.ErrorList;
     for (long index = 1; index <= list.ErrorItems.Count; index++)
     {
         AddUpErrors(errors, list.ErrorItems.Item(index));
     }
 }
示例#2
0
        private void AnalyzeErrorItems(CompilerErrors errors)
        {
            ErrorList list = MasterObjekt.ToolWindows.ErrorList;

            for (long index = 1; index <= list.ErrorItems.Count; index++)
            {
                AddUpErrors(errors, list.ErrorItems.Item(index));
            }
        }
示例#3
0
        protected CompilerErrors GetErrors()
        {
            CompilerErrors errors = new CompilerErrors();

            if (MasterObjekt != null)
            {
                AnalyzeErrorItems(errors);
            }
            return(errors);
        }
示例#4
0
 private void AddUpErrors(CompilerErrors errors, ErrorItem item)
 {
     switch (item.ErrorLevel)
     {
         case vsBuildErrorLevel.vsBuildErrorLevelHigh:
             errors.ErrorCount++; break;
         case vsBuildErrorLevel.vsBuildErrorLevelMedium:
         case vsBuildErrorLevel.vsBuildErrorLevelLow:
             errors.WarningCount++; break;
         default: break;
     }
 }
示例#5
0
        private void AddUpErrors(CompilerErrors errors, ErrorItem item)
        {
            switch (item.ErrorLevel)
            {
            case vsBuildErrorLevel.vsBuildErrorLevelHigh:
                errors.ErrorCount++; break;

            case vsBuildErrorLevel.vsBuildErrorLevelMedium:
            case vsBuildErrorLevel.vsBuildErrorLevelLow:
                errors.WarningCount++; break;

            default: break;
            }
        }
示例#6
0
 protected CompilerErrors GetErrors()
 {
     CompilerErrors errors = new CompilerErrors();
     if (MasterObjekt != null) AnalyzeErrorItems(errors);
     return errors;
 }