mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-19 02:12:49 +08:00
20 lines
607 B
C#
20 lines
607 B
C#
using Spectre.Console;
|
|
|
|
namespace Calendars
|
|
{
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
AnsiConsole.WriteLine();
|
|
AnsiConsole.Render(new Calendar(2020, 10)
|
|
.RoundedBorder()
|
|
.SetHighlightStyle(Style.Parse("red"))
|
|
.SetHeaderStyle(Style.Parse("yellow"))
|
|
.AddCalendarEvent("An event", 2020, 9, 22)
|
|
.AddCalendarEvent("Another event", 2020, 10, 2)
|
|
.AddCalendarEvent("A third event", 2020, 10, 13));
|
|
}
|
|
}
|
|
}
|