async void getRooms() { int id = getHouseId(LabelHouse.Text); if (id != -1) { ItemsList <R731PremiseWithAccounts> itemsList = await _server.GetHouseData(id.ToString()); if (itemsList.Error == null) { LabelHouseLs.Text = AppResources.LsChoose; FrameBtnAdd.IsVisible = false; StackLayoutLs.IsVisible = false; string[] paramsi = getLsRoom(itemsList.Data); var action = await DisplayActionSheet("Выбор помещения", AppResources.Cancel, null, paramsi); if (action != null && !action.Equals(AppResources.Cancel)) { LabelHouseRoom.Text = action; StackLayoutLs.IsVisible = true; } } else { await DisplayAlert(AppResources.ErrorTitle, groups.Error, "OK"); } } }