C# Class Ext.Net.MessageBox

ファイルを表示 Open project: pgodwin/Ext.net Class Usage Examples

Private Properties

Property Type Description
Alert MessageBox
Alert MessageBox
Alert MessageBox
Alert MessageBox
Alert MessageBox
Alert MessageBox
Alert MessageBox
Alert MessageBox
Configure MessageBox
Hide void
Notify Notification
Notify Notification
Notify Notification
Progress MessageBox
Progress MessageBox
Prompt MessageBox
SetIcon void
SetIcon void
Show void
Show void
ToScript string
UpdateProgress void
UpdateProgress void
UpdateText void
UpdateText void
Wait MessageBox
Wait MessageBox
Wait MessageBox
Wait MessageBox

Public Methods

Method Description
Prompt ( string title, object msg ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, JFunction fn ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, JFunction fn, string scope ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, JFunction fn, string scope, Unit multiline, string value ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, JFunction fn, string scope, bool multiline, string value ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig, string scope, Unit multiline, string value ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig, string scope, bool multiline, string value ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Prompt ( string title, string msg, string handler ) : MessageBox

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.

Private Methods

Method Description
Alert ( string title, object msg ) : MessageBox
Alert ( string title, string msg ) : MessageBox
Alert ( string title, string msg, JFunction fn ) : MessageBox
Alert ( string title, string msg, JFunction fn, string scope ) : MessageBox
Alert ( string title, string msg, MessageBoxButtonsConfig buttonsConfig ) : MessageBox
Alert ( string title, string msg, MessageBoxButtonsConfig buttonsConfig, string scope ) : MessageBox
Alert ( string title, string msg, string handler ) : MessageBox
Alert ( string title, string msg, string handler, string scope ) : MessageBox
Configure ( MessageBoxConfig config ) : MessageBox
Hide ( ) : void
Notify ( NotificationConfig config ) : Notification
Notify ( string title, object msg ) : Notification
Notify ( string title, string msg ) : Notification
Progress ( string title, string msg ) : MessageBox
Progress ( string title, string msg, string progressText ) : MessageBox
Prompt ( string title, string msg, string handler, string scope ) : MessageBox
SetIcon ( Icon icon ) : void
SetIcon ( string icon ) : void
Show ( ) : void
Show ( MessageBoxConfig config ) : void
ToScript ( ) : string
UpdateProgress ( float value, string progressText ) : void
UpdateProgress ( float value, string progressText, string msg ) : void
UpdateText ( ) : void
UpdateText ( string text ) : void
Wait ( object msg ) : MessageBox
Wait ( string msg ) : MessageBox
Wait ( string msg, string title ) : MessageBox
Wait ( string msg, string title, WaitConfig config ) : MessageBox

Method Details

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, object msg ) : MessageBox
title string The title bar text
msg object The message box body text
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg ) : MessageBox
title string The title bar text
msg string The message box body text
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, JFunction fn ) : MessageBox
title string The title bar text
msg string The message box body text
fn JFunction (optional) The callback function invoked after the message box is closed
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, JFunction fn, string scope ) : MessageBox
title string The title bar text
msg string The message box body text
fn JFunction (optional) The callback function invoked after the message box is closed
scope string (optional) The scope of the callback function
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, JFunction fn, string scope, Unit multiline, string value ) : MessageBox
title string The title bar text
msg string The message box body text
fn JFunction (optional) The callback function invoked after the message box is closed
scope string (optional) The scope of the callback function
multiline Unit (optional) True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox (defaults to false / single-line)
value string (optional) Default value of the text input element (defaults to '')
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, JFunction fn, string scope, bool multiline, string value ) : MessageBox
title string The title bar text
msg string The message box body text
fn JFunction (optional) The callback function invoked after the message box is closed
scope string (optional) The scope of the callback function
multiline bool (optional) True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox (defaults to false / single-line)
value string (optional) Default value of the text input element (defaults to '')
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig ) : MessageBox
title string The title bar text
msg string The message box body text
buttonsConfig MessageBoxButtonsConfig A MessageBoxButtonsConfig object for configuring the Text value and JavaScript Handler for each MessageBox Button.
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig, string scope, Unit multiline, string value ) : MessageBox
title string The title bar text
msg string The message box body text
buttonsConfig MessageBoxButtonsConfig A MessageBoxButtonsConfig object for configuring the Text value and JavaScript Handler for each MessageBox Button.
scope string (optional) The scope of the callback function
multiline Unit (optional) True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox (defaults to false / single-line)
value string (optional) Default value of the text input element (defaults to '')
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, MessageBoxButtonsConfig buttonsConfig, string scope, bool multiline, string value ) : MessageBox
title string The title bar text
msg string The message box body text
buttonsConfig MessageBoxButtonsConfig A MessageBoxButtonsConfig object for configuring the Text value and JavaScript Handler for each MessageBox Button.
scope string (optional) The scope of the callback function
multiline bool (optional) True to create a multiline textbox using the defaultTextHeight property, or the height in pixels to create the textbox (defaults to false / single-line)
value string (optional) Default value of the text input element (defaults to '')
return MessageBox

Prompt() public method

Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt). The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user clicks either button, and the id of the button that was clicked (could also be the top-right close button) and the text that was entered will be passed as the two parameters to the callback.
public Prompt ( string title, string msg, string handler ) : MessageBox
title string The title bar text
msg string The message box body text
handler string (optional) The callback function invoked after the message box is closed
return MessageBox