/// <summary> /// Add a string message that should be shown on the terminal /// the next time it shows its Welcome message. /// It is possible to chain several of these messages together, /// but remember that the terminal window is small. Keep /// the message short so there's room for other nag messages too. /// </summary> /// <param name="nag">Should the message be shown once, or keep being shown /// every time the terminal welcome message appears?</param> /// <param name="message">Message to print</param> public static void AddNagMessage(NagType nag, string message) { nags.Add(new NagMessage(nag, message)); }
/// <summary> /// Add a string message that should be shown on the terminal /// the next time it shows its Welcome message. /// It is possible to chain several of these messages together, /// but remember that the terminal window is small. Keep /// the message short so there's room for other nag messages too. /// </summary> /// <param name="nag">Should the message be shown once, or keep being shown /// every time the terminal welcome message appears?</param> /// <param name="message">Message to print</param> public static void AddNagMessage(NagType nag, string message) { nags.Add( new NagMessage(nag, message) ); }
public NagMessage(NagType n, string msg) { Type = n; Message = msg; }