DinoUI
v1.0.4
Dinoui - самый простой способ сделать пользовательский интерфейс для вашего консольного проекта .NET.
Установите в свой проект с Nuget
Просмотреть полный пример в программе тестирования.
using DinoUI ;
var config = new MainConfig ( )
{
Title = "DinoUI" ,
Buttons = button ,
ForegroundColor = ConsoleColor . White ,
BackgroundColor = ConsoleColor . DarkRed
} ;
//Load Home Screen
HomeScreen . Run ( config ) . Invoke ( ) ;
//Create progress bar
var lscreen = new LoadingScreen ( ) ;
lscreen . SetProgress ( 50 )
//Show an alert screen with an OK button
Popup . Alert ( "The task has completed" ) ;
//A confirmation screen where you can select "OK" or "Cancel"
var r = Popup . Confirm ( "Are you sure you want to see popups?" ) ;
if ( r )
Popup . Alert ( "You said Ok" ) ;
else
Popup . Alert ( "You said Cancel" ) ;
//A prompt box to ask for input
string name = TextInput . Run ( "What is your name?" ) ; Если вы хотите запросить новый экран, создайте проблему с тегом «Идея экрана», чтобы предложить эту идею. Если вы найдете ошибку, откройте проблему, или вы также можете сделать запрос на тягу.
Грань