Пример #1
0
 private void SalvarCanal()
 {
     using (var conexao = DependencyService.Get <ISQLite>().PegarConnection())
     {
         CanalTelegramDAO dao = new CanalTelegramDAO(conexao);
         dao.Salvar(CanalTelegram);
     }
 }
Пример #2
0
 public AnaliseViewModel()
 {
     using (var conexao = DependencyService.Get <ISQLite>().PegarConnection())
     {
         CanalTelegramDAO dao = new CanalTelegramDAO(conexao);
         var canal            = dao.CanalTelegram;
         if (canal.Count > 0)
         {
             canalTelegram = canal[0];
         }
     }
     micServico = DependencyService.Resolve <IMicrophoneService>();
     Comandos();
 }