コード例 #1
0
ファイル: Transaction.cs プロジェクト: cpmcgrath/Bankr
 public bool Equals(Transaction other)
 {
     return EffectiveDate == other.EffectiveDate
         && Description   == other.Description
         && Amount        == other.Amount
         && IsPending     == other.IsPending;
 }
コード例 #2
0
 bool AlreadyExists(IEnumerable<Transaction> list, Transaction transaction)
 {
     return list.Any(y => y.Equals(transaction));
 }
コード例 #3
0
ファイル: Account.cs プロジェクト: cpmcgrath/Bankr
 private void DetachTransactions(Transaction entity)
 {
     FirePropertyChanging();
     entity.Account = null;
 }
コード例 #4
0
 bool IsInternal(Transaction trans)
 {
     var match = Regex.Match(trans.Description, @"Transfer (from|to) xx(?<digits>\d+) NetBank");
     return match.Success;
 }
コード例 #5
0
ファイル: Account.cs プロジェクト: cpmcgrath/Bankr
 private void AttachTransactions(Transaction entity)
 {
     FirePropertyChanging();
     entity.Account = this;
 }