C# 클래스 BudgetAnalyser.Engine.Statement.StatementModel

상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: Benrnz/BudgetAnalyser 1 사용 예제들

공개 메소드들

메소드 설명
CalculateDuration ( GlobalFilterCriteria criteria, IEnumerable transactions ) : int

Calculates the duration in months from the beginning of the period to the end.

Dispose ( ) : void

Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method

SignificantDataChangeHash ( ) : long

Calcuates a hash that represents a data state for the current instance. When the data state changes the hash will change.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Allows derivatives to customise dispose logic.

비공개 메소드들

메소드 설명
BaseFilterQuery ( GlobalFilterCriteria criteria ) : IEnumerable
Filter ( GlobalFilterCriteria criteria ) : void
LoadTransactions ( IEnumerable transactions ) : StatementModel

Used internally by the importers to load transactions into the statement model.

Merge ( [ additionalModel ) : StatementModel
OnPropertyChanged ( [ propertyName = null ) : void
OnTransactionPropertyChanged ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void
ReassignFixedProjectTransactions ( [ bucket, [ reassignmentBucket ) : void
RemoveTransaction ( [ transaction ) : void
SplitTransaction ( [ originalTransaction, decimal splinterAmount1, decimal splinterAmount2, [ splinterBucket1, [ splinterBucket2 ) : void
StatementModel ( ) : System
StatementModel ( [ logger ) : System
SubscribeToTransactionChangedEvents ( ) : void
ThrowIfDisposed ( ) : void
UnsubscribeToTransactionChangedEvents ( ) : void
UpdateDuration ( ) : void
ValidateAgainstDuplicates ( ) : Transaction>>.IEnumerable

메소드 상세

CalculateDuration() 공개 정적인 메소드

Calculates the duration in months from the beginning of the period to the end.
public static CalculateDuration ( GlobalFilterCriteria criteria, IEnumerable transactions ) : int
criteria GlobalFilterCriteria /// The criteria that is currently applied to the Statement. Pass in null to use first and last /// statement dates. ///
transactions IEnumerable The list of transactions to use to determine duration.
리턴 int

Dispose() 공개 메소드

Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Allows derivatives to customise dispose logic.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

SignificantDataChangeHash() 공개 메소드

Calcuates a hash that represents a data state for the current instance. When the data state changes the hash will change.
public SignificantDataChangeHash ( ) : long
리턴 long