DinoUI
v1.0.4
Dinoui是為.NET控制台項目製作UI的最簡單方法。
使用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?" ) ; 如果您想請求新屏幕,請使用標籤“屏幕構想”創建一個問題來提出想法。如果您找到錯誤,請打開問題,也可以提出拉動請求。
麻省理工學院