Example #1
0
        private async void SearchPractice()
        {
            _dialogService.ShowWait("Searching...");

            var practice = await _activationService.SearchLocal(Local.Address, Code);

            if (null == practice)
            {
                practice = await _activationService.SearchCentral(Central.Address, Code);
            }
            _dialogService.HideWait();

            if (null == practice)
            {
                _dialogService.Alert("Could not Find facility");
            }
            else
            {
                Practice = practice;
                Name     = practice.Name;
                _dialogService.ShowToast($"Facility Found {Practice}");
            }
        }