mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Old code is not valid. 1) You can't add event handler in object initializer. 2) ml2 isn't used outside of the method. So you can use local variable.
This is just a simple standalone sample that shows how to consume Terinal.Gui from a NuGet package and .NET Core project.
Simply run:
$ dotnet run
To launch the application. Or use Visual Studio, open the solution and run.