C# Class PowerArgs.Cli.Dialog

Inheritance: PowerArgs.Cli.ConsolePanel
Show file Open project: adamabdelhamed/PowerArgs Class Usage Examples

Public Methods

Method Description
ConfirmYesOrNo ( ConsoleString message, System.Action yesCallback, System.Action noCallback = null, int maxHeight = 10 ) : void
ConfirmYesOrNo ( string message, System.Action yesCallback, System.Action noCallback = null, int maxHeight = 10 ) : void
Dialog ( ConsoleControl content ) : System
OnRemovedFromVisualTree ( ) : void
ShowMessage ( ConsoleString message, System.Action doneCallback = null, int maxHeight = 12 ) : void
ShowMessage ( ConsoleString message, Action resultCallback, bool allowEscapeToCancel = true, int maxHeight = 6 ) : void
ShowMessage ( string message, System.Action doneCallback = null, int maxHeight = 12 ) : void
ShowRichTextInput ( ConsoleString message, Action resultCallback, System.Action cancelCallback = null, bool allowEscapeToCancel = true, int maxHeight = 12, TextBox inputBox = null ) : void
ShowTextInput ( ConsoleString message, Action resultCallback, System.Action cancelCallback = null, bool allowEscapeToCancel = true, int maxHeight = 12 ) : void

Protected Methods

Method Description
OnPaint ( ConsoleBitmap context ) : void

Private Methods

Method Description
Escape ( ) : void
Event ( ) : System
OnAddedToVisualTree ( ) : void
OnBeforeAddedToVisualTree ( ) : void

Method Details

ConfirmYesOrNo() public static method

public static ConfirmYesOrNo ( ConsoleString message, System.Action yesCallback, System.Action noCallback = null, int maxHeight = 10 ) : void
message ConsoleString
yesCallback System.Action
noCallback System.Action
maxHeight int
return void

ConfirmYesOrNo() public static method

public static ConfirmYesOrNo ( string message, System.Action yesCallback, System.Action noCallback = null, int maxHeight = 10 ) : void
message string
yesCallback System.Action
noCallback System.Action
maxHeight int
return void

Dialog() public method

public Dialog ( ConsoleControl content ) : System
content ConsoleControl
return System

OnPaint() protected method

protected OnPaint ( ConsoleBitmap context ) : void
context ConsoleBitmap
return void

OnRemovedFromVisualTree() public method

public OnRemovedFromVisualTree ( ) : void
return void

ShowMessage() public static method

public static ShowMessage ( ConsoleString message, System.Action doneCallback = null, int maxHeight = 12 ) : void
message ConsoleString
doneCallback System.Action
maxHeight int
return void

ShowMessage() public static method

public static ShowMessage ( ConsoleString message, Action resultCallback, bool allowEscapeToCancel = true, int maxHeight = 6 ) : void
message ConsoleString
resultCallback Action
allowEscapeToCancel bool
maxHeight int
return void

ShowMessage() public static method

public static ShowMessage ( string message, System.Action doneCallback = null, int maxHeight = 12 ) : void
message string
doneCallback System.Action
maxHeight int
return void

ShowRichTextInput() public static method

public static ShowRichTextInput ( ConsoleString message, Action resultCallback, System.Action cancelCallback = null, bool allowEscapeToCancel = true, int maxHeight = 12, TextBox inputBox = null ) : void
message ConsoleString
resultCallback Action
cancelCallback System.Action
allowEscapeToCancel bool
maxHeight int
inputBox TextBox
return void

ShowTextInput() public static method

public static ShowTextInput ( ConsoleString message, Action resultCallback, System.Action cancelCallback = null, bool allowEscapeToCancel = true, int maxHeight = 12 ) : void
message ConsoleString
resultCallback Action
cancelCallback System.Action
allowEscapeToCancel bool
maxHeight int
return void