private void OnScanResultCommandExecuted()
        {
            if (IsAnalyzing)
            {
                IsBusy      = true;
                IsAnalyzing = false;

                //int inventory_id = int.TryParse(Result.Text, out inventory_id) ? inventory_id : -1;

                //Search inventory_id in GRIN-Global
                ScannedInventory = InventoryFactory.GetInventories()[new Random().Next(0, 7)];

                IsBusy = false;
            }

            //DeviceService.BeginInvokeOnMainThread(async () => {


            //    //await Task.Delay(50);
            //    //await NavigationService.GoBackAsync(null, null, true);


            //    //if (_isScanning)
            //    //{
            //    //    _isScanning = false;
            //    //    IsAnalyzing = false;

            //    //    /*var response = await PageDialogService.DisplayAlertAsync("Barcode value", ResultText, "OK", "Scan again");
            //    //    if (response)
            //    //    {
            //    //        IsScanning = false;
            //    //        await NavigationService.GoBackAsync(null, null, false);
            //    //    }
            //    //    else
            //    //    {
            //    //        Result = null;
            //    //        ResultText = "";
            //    //    }*/
            //    //}
            //    //IsAnalyzing = true;
            //    //_isScanning = true;
            //});
        }