예제 #1
0
 void OnSwipeButtonClick(object sender, SwipeButtonEventArgs e)
 {
     if (e.ButtonInfo.ButtonName != "RemoveButton")
     {
         DisplayAlert("Alert from " + e.ButtonInfo.ButtonName, "The " + e.ButtonInfo.ButtonName + " was clicked", "Ok");
     }
 }
예제 #2
0
 void OnSwipeButtonClick(object sender, SwipeButtonEventArgs e)
 {
     if (e.ButtonInfo.ButtonName == "DeleteButton")
     {
         //DisplayAlert("Alert from " + e.ButtonInfo.Caption, "Delete ", "OK");
         invoiceViewModel.DeleteLine(e.SourceRowIndex);
         //devgrid.DeleteRow(e.RowHandle);
     }
 }
 private void DataGrid_SwipeButtonClick(object sender, SwipeButtonEventArgs e)
 {
     if (e.SourceRowIndex != -1 && _allItems != null)
     {
         var tableData = _allItems.ElementAtOrDefault(e.SourceRowIndex);
         if (tableData != null)
         {
             MessagingCenter.Send(this, MessagingCenterKeys.TableGoToChartKey, tableData);
         }
     }
 }
        void SwipeButtonClickExecute(object parameter)
        {
            SwipeButtonEventArgs arg = parameter as SwipeButtonEventArgs;

            if (arg != null)
            {
                if (arg.ButtonInfo.ButtonName == "RemoveButton")
                {
                    this.Orders.RemoveAt(arg.SourceRowIndex);
                }
            }
        }
 void OnSwipeButtonClick(object sender, 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);
     }
 }
		void OnSwipeButtonClick(object sender, SwipeButtonEventArgs e) {
			if(e.ButtonInfo.ButtonName != "RemoveButton") {
				DisplayAlert("Alert from " + e.ButtonInfo.ButtonName, "The " + e.ButtonInfo.ButtonName + " was clicked", "Ok");
			}
		}
예제 #7
0
 void Click(object sender, SwipeButtonEventArgs e)
 {
 }