Example #1
0
        /// <summary>
        /// Set the message text as informational
        /// </summary>
        public ViewModelBase WithInformationalMessage(string text)
        {
            this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Information };

            return this;
        }
Example #2
0
        /// <summary>
        /// Set an error message
        /// </summary>
        public ViewModelBase WithErrorMessage(string text)
        {
            this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Error };

            return this;
        }
Example #3
0
        /// <summary>
        /// Set a message
        /// </summary>
        public ViewModelBase WithMessage(MessageModel message)
        {
            this.Message = message;

            return this;
        }
Example #4
0
        /// <summary>
        /// Set an exclamation message
        /// </summary>
        public ViewModelBase WithWarningMessage(string text)
        {
            this.Message = new MessageModel { Text = text, Classifier = MessageClassifier.Exclamation };

            return this;
        }