Ejemplo n.º 1
0
 /// <summary>
 /// Adds text to existing message on the page. If type of message is Error or Warning, hides info message telling user to select template, because there are no templates.
 /// </summary>
 /// <param name="type">Message type</param>
 /// <param name="text">Information message</param>
 /// <param name="separator">Separator</param>
 public override void AddMessage(MessageTypeEnum type, string text, string separator = null)
 {
     base.AddMessage(type, text, separator);
     if ((type == MessageTypeEnum.Warning) || (type == MessageTypeEnum.Error))
     {
         litSelectWidget.Visible = false;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Overrides the AbstractUserControl.ShowMessage method. Ensures that the message will use the standard rich CSS styles on live site as well.
 /// </summary>
 /// <param name="type">Message type</param>
 /// <param name="text">Message text</param>
 /// <param name="description">Additional description</param>
 /// <param name="tooltipText">Tooltip text</param>
 /// <param name="persistent">Indicates if the message is persistent</param>
 public override void ShowMessage(MessageTypeEnum type, string text, string description, string tooltipText, bool persistent)
 {
     ShowMessage(type, text, description, tooltipText, persistent, false);
 }