diff --git a/README.md b/README.md
index 3597c45..3ad5fe1 100644
--- a/README.md
+++ b/README.md
@@ -56,6 +56,8 @@ Thanks !
* [PromptDialog](#prompt-dialog)
+ * [ConfirmDialog](#confirm-dialog)
+
- [Controls](#controls)
* [ProgressBar](#progress-bar)
@@ -663,6 +665,9 @@ For now we have the following:
Makes sense to create a "feeling" of a clean environment for the user. For instance if you have a multilevel menu. This will remove the previously shown menu, and renders the new sub/top level.
- [PromptDialog](#prompt-dialog)
+ A simple dialog which will show a message and then waits for a text input (response).
+
+- [ConfirmDialog](#confirm-dialog)
A simple dialog which is able to show multiple buttons and a Text message. The user could select one option and will get redirected to a different form, depending on the click.
### Alert Dialog
@@ -693,17 +698,16 @@ No example yet
-#### With Eventhandler
```
-PromptDialog pd = new PromptDialog("Please confirm", new ButtonBase("Ok", "ok"), new ButtonBase("Cancel", "cancel"));
+PromptDialog pd = new PromptDialog("Please tell me your name ?");
-pd.ButtonClicked += async (s, en) =>
+pd.Completed += async (s, en) =>
{
- var tf = new TestForm2();
+ await this.Device.Send("Hello " + pd.Value);
- //Remember only to navigate from the current running form. (here it is the prompt dialog, cause we have left the above already)
+ var tf = new TestForm2();
await pd.NavigateTo(tf);
};
@@ -711,6 +715,27 @@ await this.NavigateTo(pd);
```
+### Confirm Dialog
+
+
+
+
+
+```
+
+ConfirmDialog cd = new ConfirmDialog("Please confirm", new ButtonBase("Ok", "ok"), new ButtonBase("Cancel", "cancel"));
+
+cd.ButtonClicked += async (s, en) =>
+{
+ var tf = new TestForm2();
+
+ //Remember only to navigate from the current running form. (here it is the prompt dialog, cause we have left the above already)
+ await cd.NavigateTo(tf);
+};
+
+await this.NavigateTo(cd);
+
+```
## Controls
diff --git a/images/confirmdialog.PNG b/images/confirmdialog.PNG
new file mode 100644
index 0000000..29f311c
Binary files /dev/null and b/images/confirmdialog.PNG differ
diff --git a/images/promptdialog.PNG b/images/promptdialog.PNG
index 29f311c..b015067 100644
Binary files a/images/promptdialog.PNG and b/images/promptdialog.PNG differ