private async Task ClearBufferAsync(AccessRepo accessRepo, InformationBuffer _informationBuffer)
        {
            try
            {
                await accessRepo.DumpCache("buffer");

                _informationBuffer.Buffer.RemoveRange(0, _informationBuffer.Buffer.Count() - 1);
                await accessRepo.InsertData(_informationBuffer);
            }
            catch {; }
        }
        public MainPageViewModel()
        {
            AccessRepo.InitializeDataBank();
            ActionImage        = ImageSource.FromFile("play.png");
            ActionText         = "Inicializando sistema de aquisição...";
            AquisitionStart    = false;
            TripStarted        = false;
            LatLonInfo         = "Lat.: -- / Long.: --";
            SpeedCompare       = "Veloc. Atual: 0 km/h;";
            NotSentMsg         = "Aguard. Envio: 0";
            _MainPageViewModel = this;

            ConnectionString = AppConstants.DEVICE_CONNECTION_STRING;
            VersionName      = string.Format("V{0}", AppConstants.DEVICE_APP_VERSION_NUMBER);

            HandleGeneratedMessages();
            DataAquisitionFinished = true;
            SendDataFinished       = true;
            UpdateInitialState();
        }