Esempio n. 1
0
        private void AddError(IList <IErrorListItem> errors, string file, int line, int column, int length, string errCode, string message,
                              string projectName, MessageSeverity sev, ErrorSource errorSource)
        {
            var item = new ErrorListItem()
            {
                Filename    = file,
                Line        = line,
                Column      = column,
                Length      = length,
                ErrorCode   = errCode,
                Message     = message,
                ProjectName = projectName,
                ErrorSource = errorSource,
                Severity    = sev,
                BuildTool   = errorSource == ErrorSource.Build ? "Build" : "Live",
                ProjectGuid = Project.ProjectIDGuid
                              //Manager = this
            };

            lock (this)
            {
                errors.Add(item);
                dirty = true;
            }
        }
        private IErrorListItem CreateItem(string file, int line, int column, int length, string errCode,
                                          string message, MessageSeverity sev, ErrorSource errorSource, string projectName)
        {
            var item = new ErrorListItem()
            {
                Filename    = file,
                Line        = line,
                Column      = column,
                Length      = length,
                ErrorCode   = errCode,
                Message     = message,
                ProjectName = projectName,
                ErrorSource = errorSource,
                Severity    = sev,
                BuildTool   = errorSource == ErrorSource.Build ? "Build" : "Live",
                ProjectGuid = Project.ProjectIDGuid
            };

            return(item);
        }