コード例 #1
0
        private void ValidateContent()
        {
            Warnings.RaiseListChangedEvents = false;

            Warnings.Clear();

            if (string.IsNullOrEmpty(Original) || string.IsNullOrEmpty(Result))
            {
                Warnings.Add(new Warning("No content", WarningLevel.Error));
            }
            else
            {
                contentValidators.ForEach(c => { c.Validate(Original, Result).ForEach(Warnings.Add); });
            }

            Warnings.RaiseListChangedEvents = true;
            Warnings.ResetBindings();
        }