Пример #1
0
        public ImportMessage AddMessage(string message, ImportMessageType severity, ImportRowInfo affectedRow = null, string affectedField = null)
        {
            var msg = new ImportMessage(message, severity);

            msg.AffectedItem  = affectedRow;
            msg.AffectedField = affectedField;
            this.Messages.Add(msg);
            return(msg);
        }
Пример #2
0
 public ImportMessage AddError(string message, ImportRowInfo affectedRow = null, string affectedField = null)
 {
     return(this.AddMessage(message, ImportMessageType.Error, affectedRow, affectedField));
 }