public static void AddNotification(this INotificationModel model, string header, string msg, SpeechBubbleIcon type)
 {
     model.Notifications.Add(new Notification()
         {
             Header = header,
             Message = msg,
             NotificationType = type
         });
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a Speech Bubble (a Balloon Tooltip)
 /// </summary>
 /// <param name="icon">The icon.</param>
 /// <param name="header">The header.</param>
 /// <param name="body">The body.</param>
 public void SpeechBubble(SpeechBubbleIcon icon, string header, string body)
 {
     if (Request.QueryString["external"] == null)
     {
         ClientScript.RegisterClientScriptBlock(GetType(), Guid.NewGuid().ToString(),
                                                "<script>top.umbSpeechBubble('" + icon.ToString() + "', '" +
                                                header.Replace("'", "\\'") + "', '" + body.Replace("'", "\\'") +
                                                "');</script>");
     }
 }
 /// <summary>
 /// A reference to the umbraco UI component "speechbubble". The speechbubble appears in the lower right corner of the screen, notifying users of events
 /// </summary>
 /// <param name="i">The speechbubble icon.</param>
 /// <param name="header">The speechbubble header.</param>
 /// <param name="body">The body text</param>
 public ClientTools ShowSpeechBubble(SpeechBubbleIcon i, string header, string body)
 {
     RegisterClientScript(string.Format(Scripts.ShowSpeechBubble, i.ToString(), header.Replace("'", "\\'"), body.Replace("'", "\\'")));
     return(this);
 }
Esempio n. 4
0
		/// <summary>
		/// Creates a Speech Bubble (a Balloon Tooltip)
		/// </summary>
		/// <param name="icon">The icon.</param>
		/// <param name="header">The header.</param>
		/// <param name="body">The body.</param>
		public void SpeechBubble(SpeechBubbleIcon icon, string header, string body)
		{
			if (Request.QueryString["external"] == null)
				ClientScript.RegisterClientScriptBlock(GetType(), Guid.NewGuid().ToString(),
													   "<script>top.umbSpeechBubble('" + icon.ToString() + "', '" +
													   header.Replace("'", "\\'") + "', '" + body.Replace("'", "\\'") +
													   "');</script>");
		}
Esempio n. 5
0
 public Notification(string header, string message, SpeechBubbleIcon notificationType)
 {
     Header           = header;
     Message          = message;
     NotificationType = notificationType;
 }
Esempio n. 6
0
		/// <summary>
		/// A reference to the umbraco UI component "speechbubble". The speechbubble appears in the lower right corner of the screen, notifying users of events
		/// </summary>
		/// <param name="i">The speechbubble icon.</param>
		/// <param name="header">The speechbubble header.</param>
		/// <param name="body">The body text</param>
		public ClientTools ShowSpeechBubble(SpeechBubbleIcon i, string header, string body)
		{
			RegisterClientScript(string.Format(Scripts.ShowSpeechBubble, i.ToString(), header.Replace("'", "\\'"), body.Replace("'", "\\'")));
			return this;
		}
Esempio n. 7
0
 public static void AddNotification(this INotificationModel model, string header, string msg, SpeechBubbleIcon type)
 {
     model.Notifications.Add(new Notification()
     {
         Header           = header,
         Message          = msg,
         NotificationType = type
     });
 }