void OnSwipeButtonClick(object sender, DevExpress.Mobile.DataGrid.SwipeButtonEventArgs e)
 {
     if (e.ButtonInfo.ButtonName.Equals("btnSwMostrarUbicacion"))
     {
         string NombreSalon = (string)gridHorarioGrupo.GetCellValue(e.RowHandle, "Salon");
         System.Diagnostics.Debug.WriteLine("Algo en RightButton OnSwipeButtonClick: " + NombreSalon);
         //DisplayAlert("Alert from " + e.ButtonInfo.ButtonName, "Salón: " + NombreSalon, "OK");
         DisplayAlert("Mostrar ubicación", "Salón: " + NombreSalon, "OK");
     }
 }
Beispiel #2
0
 void OnSwipeButtonClick(object sender, DevExpress.Mobile.DataGrid.SwipeButtonEventArgs e)
 {
     if (e.ButtonInfo.ButtonName == "LeftButton")
     {
         DateTime orderDate    = (DateTime)grid.GetCellValue(e.RowHandle, "Date");
         string   orderDateDay = orderDate.ToString("dddd");
         DisplayAlert("Alert from " + e.ButtonInfo.ButtonName, "Day: " + orderDateDay, "OK");
     }
     if (e.ButtonInfo.ButtonName == "RightButton")
     {
         grid.DeleteRow(e.RowHandle);
     }
 }