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(); }
public void Salvar(CanalTelegram canal) { conexao.DeleteAll <CanalTelegram>(); conexao.Insert(canal); }