public static int Save(clsBankDebit theBankDebit) { // Will return -1 if save was unsucessful, otherwise will return the ID of the record saved int returnValue = -1; return(returnValue); }
private void BankDebitListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { Code.clsBankDebit bankDebit = CashPredictorInstance.GetBankDebits()[e.Position]; Console.WriteLine("[{0}] Bank debit clicked - ID: [{1}] {2}", mClassName, bankDebit.ID.ToString(), bankDebit.Description); Toast.MakeText(this, "Bank Debit list view item clicked!", ToastLength.Short).Show(); // Update the bank debit to change the include in calculation flag bankDebit.IncludeInCalculation = !bankDebit.IncludeInCalculation; // Reverse the includeincalulation flag bankDebit.Save(); // Save the Bankdebit // refresh the bankdebit listview OnResume(); UpdateBalance(); // Update the balance }