mirror of
https://github.com/spectreconsole/examples.git
synced 2025-10-25 15:19:18 +00:00
19 lines
542 B
C#
19 lines
542 B
C#
using Spectre.Console;
|
|
|
|
namespace Calendars;
|
|
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
AnsiConsole.WriteLine();
|
|
AnsiConsole.Write(new Calendar(2020, 10)
|
|
.RoundedBorder()
|
|
.HighlightStyle(Style.Parse("red"))
|
|
.HeaderStyle(Style.Parse("yellow"))
|
|
.AddCalendarEvent("An event", 2020, 9, 22)
|
|
.AddCalendarEvent("Another event", 2020, 10, 2)
|
|
.AddCalendarEvent("A third event", 2020, 10, 13));
|
|
}
|
|
}
|