public AddTransaction(IList<Transaction> accountTransactions, Transaction initialTransaction, Transaction newTransaction) { Transactions = accountTransactions; NewTransaction = newTransaction; InitialTransaction = initialTransaction; Account = NewTransaction.Account; }
public DeleteTransaction(IList<Transaction> accountTransactions, Transaction transaction) { Transactions = accountTransactions; TransactionToBeDeleted = transaction; Account = transaction.Account; }
private DragDropEffects GetDragEffects(Transaction transaction) { return DragDropEffects.Move; }
private object GetData(Transaction transaction) { return this; }
private DragDropEffects GetDropEffects(Transaction transaction) { if (transaction.Account == this) { return DragDropEffects.None; } return DragDropEffects.Move; }
private void Drop(Transaction transaction) { transaction.Account.Transactions.Remove(transaction); transaction.Account.NotifyPropertyChanged("UITransactions"); transaction.Account = this; Transactions.Add(transaction); }