Update README.md

This commit is contained in:
Florian Dahn 2018-05-19 23:58:17 +02:00 committed by GitHub
parent f7b71b59e2
commit a1b1346430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!");
```
---