void mListView_ItemLongClick(object sender, AdapterView.ItemLongClickEventArgs e) { xcc = mItems[e.Position].Ingredients; FragmentTransaction transaction = FragmentManager.BeginTransaction(); dialog_AP_Manage_InventoryEdit manageInventory = new dialog_AP_Manage_InventoryEdit(); manageInventory.Show(transaction, "dialog fragment"); //Edit button starts action manageInventory.editItemComplete += manageinventoryDialog_addItemComplete; //Delete button starts action manageInventory.deleteItemComplete += manageinventoryDialog_deleteItemComplete; }
//Action to run for edit item button in dialog void manageAccountDialog_deleteItemComplete(object send, dialog_AP_Manage_InventoryEdit e) { Thread thread = new Thread(deleteRequest); thread.Start(); }