Esempio n. 1
0
 public static string Usage(string text, int width = -1)
 {
     using (var ab = new AlertBuilder(AlertType.Usage, null, width)) {
         ab.AppendRow(text);
         return(ab.ToString());
     }
 }
Esempio n. 2
0
 public static string Error(string title, string text, int width = -1)
 {
     using (var ab = new AlertBuilder(AlertType.Error, title, width)) {
         ab.AppendRow(text);
         return(ab.ToString());
     }
 }
Esempio n. 3
0
 public static string Title(string header, string title, int width = -1)
 {
     using (var ab = new AlertBuilder(AlertType.Title, header, width)) {
         ab.AppendRow(title);
         return(ab.ToString());
     }
 }