C# Class PaulStovell.TrialBalance.DomainModel.Account

An abstract class that represents an account. There are five concrete account types - Assets, Liabilities, Expenses, Revenue and Equity.
Inheritance: AccountingDomainObject, IComparable
Mostrar archivo Open project: PaulStovell/trial-balance Class Usage Examples

Public Properties

Property Type Description
AccountIDPropertyChangedEventArgs System.ComponentModel.PropertyChangedEventArgs
DescriptionPropertyChangedEventArgs System.ComponentModel.PropertyChangedEventArgs
NamePropertyChangedEventArgs System.ComponentModel.PropertyChangedEventArgs

Private Properties

Property Type Description

Public Methods

Method Description
CompareTo ( object obj ) : int

Compares a given account with the current account.

CopyTo ( object targetObject ) : void

Copies the properties of this object to those of a new object.

ToString ( ) : string

Gets a unique string representation of this account.

Protected Methods

Method Description
Account ( AccountType accountType, BalanceType defaultBalanceType ) : System

Internal constructor.

CreateRules ( ) : List

Override this method to add extra validation rules to this account.

Method Details

Account() protected method

Internal constructor.
protected Account ( AccountType accountType, BalanceType defaultBalanceType ) : System
accountType AccountType
defaultBalanceType BalanceType
return System

CompareTo() public method

Compares a given account with the current account.
public CompareTo ( object obj ) : int
obj object The account to compare with.
return int

CopyTo() public method

Copies the properties of this object to those of a new object.
public CopyTo ( object targetObject ) : void
targetObject object The object to copy the properties to.
return void

CreateRules() protected method

Override this method to add extra validation rules to this account.
protected CreateRules ( ) : List
return List

ToString() public method

Gets a unique string representation of this account.
public ToString ( ) : string
return string

Property Details

AccountIDPropertyChangedEventArgs public_oe static_oe property

Raised by the PropertyChanged event when the AccountID property changes.
public static PropertyChangedEventArgs,System.ComponentModel AccountIDPropertyChangedEventArgs
return System.ComponentModel.PropertyChangedEventArgs

DescriptionPropertyChangedEventArgs public_oe static_oe property

Raised by the PropertyChanged event when the Description property changes.
public static PropertyChangedEventArgs,System.ComponentModel DescriptionPropertyChangedEventArgs
return System.ComponentModel.PropertyChangedEventArgs

NamePropertyChangedEventArgs public_oe static_oe property

Raised by the PropertyChanged event when the Name property changes.
public static PropertyChangedEventArgs,System.ComponentModel NamePropertyChangedEventArgs
return System.ComponentModel.PropertyChangedEventArgs