Exemplo n.º 1
0
 public override void OnInit()
 {
     Task.Run(async() =>
     {
         var results = await LiteDb.GetAll <Person>();
         if (results.Error == null)
         {
             People = results.Response.ToObservable();
         }
         else
         {
             DialogPrompt.ShowMessage(new Prompt()
             {
                 Title        = "Error",
                 Message      = results.Error.Message,
                 ButtonTitles = new string[] { "Okay" }
             });
         }
     });
 }