private async void ShowDetails() { dataGrid.ResetSwipeOffset(); if (swipeIndex_ == 0) { return; } if (swipeData_ == null) { return; } try { string sql = String.Format("SELECT * FROM scadenze WHERE sca_relaz = 0 AND sca_pagato = 0 AND sca_cli_for = {0}", swipeData_.CliId); var scaList = await dbcon_.QueryAsync <Scadenze>(sql); } catch (Exception ex) { await DisplayAlert("Attenzione!", ex.Message, "OK"); return; } var page = new ScadenzeDetails(swipeData_); await Navigation.PushAsync(page); }
async void DataGrid_GridLongPressed(object sender, GridLongPressedEventArgs e) { var sca = (ScadenzeInfo)e.RowData; var page = new ScadenzeDetails(sca); await Navigation.PushAsync(page); }