Пример #1
0
        protected void SetErrorMessage(BaseValidator validator, Integrity.DestinationOnOrBelowItselfException ex)
        {
            Trace.Write(ex.ToString());

            string message = string.Format("Cannot move an item to a destination onto or below itself",
                ex.SourceItem.Name,
                ex.DestinationItem.Name);
            SetErrorMessage(validator, message);
        }
Пример #2
0
        protected void SetErrorMessage(BaseValidator validator, Integrity.NameOccupiedException ex)
        {
            Trace.Write(ex.ToString());

            string message = string.Format("An item named '{0}' already exists below '{1}'",
                ex.SourceItem.Name,
                ex.DestinationItem.Name);
            SetErrorMessage(validator, message);
        }