Interface IDialogs
App dialogs interface.
Namespace: EduCATS.Helpers.Forms.Dialogs
Assembly: EduCATS.dll
Syntax
public interface IDialogs
Methods
HideLoading()
Hide loading dialog.
Declaration
void HideLoading()
HideProgress(object)
Hide progress dialog.
Declaration
void HideProgress(object dialog)
Parameters
Type | Name | Description |
---|---|---|
object | dialog | Progress dialog instance (retrieved from ShowProgress(string, string, Action)). |
ShowConfirmation(string, string)
Show confirmation dialog with buttot OK.
Declaration
Task ShowConfirmation(string title, string message)
Parameters
Type | Name | Description |
---|---|---|
string | title | Dialog title. |
string | message | Dialog description. |
Returns
Type | Description |
---|---|
Task |
ShowConfirmationMessage(string, string)
Show confirmation dialog.
Declaration
Task<bool> ShowConfirmationMessage(string title, string message)
Parameters
Type | Name | Description |
---|---|---|
string | title | Dialog title. |
string | message | Dialog description. |
Returns
Type | Description |
---|---|
Task<bool> | Dialog result. |
ShowError(string)
Show error dialog.
Declaration
void ShowError(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | Dialog description. |
ShowLoading()
Show loading dialog.
Declaration
void ShowLoading()
ShowLoading(string)
Show loading dialog.
Declaration
void ShowLoading(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | Dialog description. |
ShowMessage(string, string)
Show message dialog.
Declaration
void ShowMessage(string title, string message)
Parameters
Type | Name | Description |
---|---|---|
string | title | Dialog title. |
string | message | Dialog description. |
ShowMessageUpdate(string, string, string, string)
Show message dialog.
Declaration
Task<bool> ShowMessageUpdate(string title, string message, string linkButton, string cancelButton)
Parameters
Type | Name | Description |
---|---|---|
string | title | Dialog title. |
string | message | Dialog description. |
string | linkButton | |
string | cancelButton |
Returns
Type | Description |
---|---|
Task<bool> |
ShowProgress(string, string, Action)
Show progress dialog.
Declaration
object ShowProgress(string message, string cancelText, Action onCancel)
Parameters
Type | Name | Description |
---|---|---|
string | message | Dialog message. |
string | cancelText | Cancel button text. |
Action | onCancel | Action on cancel. |
Returns
Type | Description |
---|---|
object | Progress dialog. |
ShowSheet(string, Dictionary<int, string>, ICommand)
Show alert sheet.
Declaration
void ShowSheet(string title, Dictionary<int, string> buttons, ICommand command)
Parameters
Type | Name | Description |
---|---|---|
string | title | Dialog title. |
Dictionary<int, string> | buttons | Dialog buttons (id and name). |
ICommand | command | Command to execute on button click. |
UpdateProgress(object, int)
Update progress dialog with percent.
Declaration
void UpdateProgress(object dialog, int percent)
Parameters
Type | Name | Description |
---|---|---|
object | dialog | Progress dialog instance (retrieved from ShowProgress(string, string, Action)). |
int | percent | Percent to apply. |