Ejemplo n.º 1
0
 /// <summary>
 /// The warning.
 /// </summary>
 /// <param name="notifier">
 /// The notifier.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <param name="durable">
 /// The durable.
 /// </param>
 public static void Warning(this INotifier notifier, LocalizedString message, bool durable = true)
 {
     notifier.Add(NotifyType.Warning, message, durable);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The information.
 /// </summary>
 /// <param name="notifier">
 /// The notifier.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <param name="durable">
 /// The durable.
 /// </param>
 public static void Information(this INotifier notifier, LocalizedString message, bool durable = true)
 {
     notifier.Add(NotifyType.Info, message, durable);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// The success.
 /// </summary>
 /// <param name="notifier">
 /// The notifier.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <param name="durable">
 /// The durable.
 /// </param>
 public static void Success(this INotifier notifier, LocalizedString message, bool durable = true)
 {
     notifier.Add(NotifyType.Success, message, durable);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The text or default.
 /// </summary>
 /// <param name="text">
 /// The text.
 /// </param>
 /// <param name="defaultValue">
 /// The default value.
 /// </param>
 /// <returns>
 /// The <see cref="LocalizedString"/>.
 /// </returns>
 public static LocalizedString TextOrDefault(string text, LocalizedString defaultValue)
 {
     if (string.IsNullOrEmpty(text))
         return defaultValue;
     return new LocalizedString(text);
 }