private void AddMessage(MyValidationLevel level, string message, MyNode sender) { string[] lines = message.Split('\n'); Messages.Add(new MyValidationMessage(level, lines[0], sender)); for (int i = 1; i < lines.Length; i++) { Messages.Add(new MyValidationMessage(level, lines[i], null)); } }
private void AddMessage(MyValidationLevel level, string message, IValidatable sender) { string[] lines = message.Split('\n'); Messages.Add(new MyValidationMessage(level, lines[0], sender)); for (int i = 1; i < lines.Length; i++) { Messages.Add(new MyValidationMessage(level, lines[i], null)); } }
internal MyValidationMessage(MyValidationLevel level, string message, MyNode sender) { Level = level; Message = message; Sender = sender; }
internal MyValidationMessage(MyValidationLevel level, string message, MyNode sender) { Level = level; Message = message; Sender = sender; }