Пример #1
0
        /// <summary>
        /// Gets the BaseVM with notification warning.
        /// </summary>
        /// <param name="warningMessage">The warning message.</param>
        /// <returns>The BaseVM object with warning message.</returns>
        public static BaseVM BaseVmWarning(string warningMessage)
        {
            var retValue = new BaseVM();

            retValue.NotificationContainer.AddWarning(warningMessage);
            return(retValue);
        }
Пример #2
0
        /// <summary>
        /// Gets the BaseVM with notification success.
        /// </summary>
        /// <param name="successMessage">The success message.</param>
        /// <returns>The BaseVM object with success message.</returns>
        public static BaseVM BaseVmSuccess(string successMessage)
        {
            var retValue = new BaseVM();

            retValue.NotificationContainer.AddSuccess(successMessage);
            return(retValue);
        }
Пример #3
0
        /// <summary>
        /// Gets the BaseVM with notification error.
        /// </summary>
        /// <param name="errorMessage">The error message.</param>
        /// <returns>The BaseVM object with error message.</returns>
        public static BaseVM BaseVmError(string errorMessage)
        {
            var retValue = new BaseVM();

            retValue.NotificationContainer.AddError(errorMessage);
            return(retValue);
        }
Пример #4
0
 /// <summary>
 /// Sets the notification error.
 /// </summary>
 /// <param name="vm">The this.</param>
 /// <param name="errorMessage">The error message.</param>
 public static void SetError(this BaseVM vm, string errorMessage)
 {
     vm.NotificationContainer.AddError(errorMessage);
 }
Пример #5
0
 /// <summary>
 /// Sets the notification warning.
 /// </summary>
 /// <param name="vm">The this.</param>
 /// <param name="warningMessage">The warning message.</param>
 public static void SetWarning(this BaseVM vm, string warningMessage)
 {
     vm.NotificationContainer.AddWarning(warningMessage);
 }