DinoUI
v1.0.4
Dinoui ist der einfachste Weg, um eine Benutzeroberfläche für Ihr .NET -Konsolenprojekt zu erstellen.
Installieren Sie in Ihrem Projekt mit Nuget
Sehen Sie sich das vollständige Beispiel im Testprogramm an.
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?" ) ; Wenn Sie einen neuen Bildschirm anfordern möchten, erstellen Sie ein Problem mit dem Tag "Bildschirmidee", um die Idee vorzuschlagen. Wenn Sie einen Fehler finden, öffnen Sie ein Problem oder können Sie auch eine Pull -Anfrage stellen.
MIT