예제 #1
0
        public void UpdateValidationMessage()
        {
            var newValidationResults = Validate();

            if (ValidationResults.SequenceEqual(newValidationResults))
            {
                return;
            }

            ValidationResults.Clear();
            ValidationResults.AddRange(newValidationResults);
            TriggerEvent(new ValidationChangedEvent(DateTime.Now, Name, ValidationMessages));
        }
 /// <summary>
 /// Determines whether the specified <see cref="CommandWorkflowResult"/> object is equal to this object.
 /// </summary>
 /// <param name="other">The other <see cref="CommandWorkflowResult"/> object to compare.</param>
 /// <returns>True if they are equal; false if not.</returns>
 protected bool Equals(CommandWorkflowResult other)
 {
     return(ValidationResults.SequenceEqual(other.ValidationResults));
 }