C# Класс BudgetAnalyser.Engine.Statement.StatementModel

Наследование: INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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