From a1b13464309cea6f87dff0813a0daa6d2ef17970 Mon Sep 17 00:00:00 2001 From: Florian Dahn Date: Sat, 19 May 2018 23:58:17 +0200 Subject: [PATCH] Update README.md --- README.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/README.md b/README.md index 7cbf122..ded4bc0 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,62 @@ bb.Start(); ``` +Every Form has some events which will get raised at specific times. On every form you are able to get notes about the "Remote Device" like ChatId and other stuff your carrying. From there you build up you apps: + +``` +public class StartForm : FormBase + { + + + public override async Task PreLoad(MessageResult message) + { + + } + + public override async Task Init(params object[] param) + { + + } + + public override async Task Opened() + { + + } + + public override async Task Closed() + { + + } + + public override async Task Load(MessageResult message) + { + await this.Device.Send("Hello world!"); + } + + + + public override async Task Action(MessageResult message) + { + + + } + + + public override async Task Render(MessageResult message) + { + + } + + } + +``` + +For instance send a message after loading a specific form: + +``` +await this.Device.Send("Hello world!"); +``` + ---