private async Task RefreshPropertiesAsync()
        {
            try
            {
                IsBusy = true;
                var result = await _searchService.FindProperties(_navigationParams.location, _navigationParams.toLet);

                _currentPage = result.MetaData.PageNumber;
                _hasNextPage = result.MetaData.HasNextPage;
                _total       = result.MetaData.TotalItemCount;

                PropertiesList.Clear();
                foreach (var property in result.Properties)
                {
                    PropertiesList.Add(property);
                }

                UpdateDisplyingDescription();

                if (_isInitialised == false)
                {
                    _isInitialised = true;
                }
            }
            catch (Exception exc)
            {
                _log.ErrorException("An error has occurred while trying to get search results", exc);
                await _useDialogs.AlertAsync("An error has occurred. Please try again.");
            }
            finally
            {
                IsBusy = false;
            }
        }
 private void Form2_Load(object sender, EventArgs e)
 {
     listContact.Clear();
     Contact newContact = null;
     newContact = new Contact();
     newContact.Name = "diana";
     newContact.Address = "en";
     listContact.Add(newContact);
     newContact = null;
     newContact = new Contact();
     newContact.Name = "maxim";
     newContact.Address = "cand";
     listContact.Add(newContact);
     propGrid.AllowDrop = true;
     object[] itens = new object[2];
     itens[0] = listContact;
     itens[1] = newContact;
     propGrid.SelectedObject = listContact;
     this.Controls.Add(propGrid);
     propGrid.Dock = DockStyle.Fill;
 }