Example #1
0
        private String GetClassString(BootstrapAlertTypes type)
        {
            switch (type)
            {
            default:
            case BootstrapAlertTypes.Success: return("alert-success");

            case BootstrapAlertTypes.Info: return("alert-info");

            case BootstrapAlertTypes.Warning: return("alert-warning");

            case BootstrapAlertTypes.Danger: return("alert-danger");
            }
        }
Example #2
0
 protected void SetMessage(String message, BootstrapAlertTypes type)
 {
     //TempData[Configuration.ExpressionMagicString] = expression;
     TempData[Configuration.AlertMagicString]   = GetClassString(type);
     TempData[Configuration.MessageMagicString] = message;
 }
Example #3
0
 public void SetMessage(String message, BootstrapAlertTypes type)
 {
     ServiceTempData[Configuration.MessageMagicString] = message;
     ServiceTempData[Configuration.AlertMagicString]   = GetClassString(type);
 }